fromPrompt($fromPrompt); $this->toPrompt($toPrompt); $this->preserveGeometry($preserveGeometry); $this->detectMultiple($detectMultiple); } /** * Use natural language to describe what you want to affect in the image. * * @param string $fromPrompt A description of the object to replace. * * @return $this */ public function fromPrompt($fromPrompt) { $this->getMainQualifier()->getPropertiesValue()->setSimpleNamedValue( self::FROM_PROMPT, $fromPrompt ); return $this; } /** * Use natural language to describe what you want to affect in the image. * * @param string $toPrompt A description of the replacement object. * * @return $this */ public function toPrompt($toPrompt) { $this->getMainQualifier()->getPropertiesValue()->setSimpleNamedValue( self::TO_PROMPT, $toPrompt ); return $this; } /** * Preserve geometry. * * @param bool $preserveGeometry Whether to maintain the shape of the object you're replacing. * * @return $this */ public function preserveGeometry($preserveGeometry = true) { $this->getMainQualifier()->getPropertiesValue()->setSimpleNamedValue( self::PRESERVE_GEOMETRY, TransformationUtils::boolToString($preserveGeometry) ); return $this; } }