*/ private $references; /** * Prompt text. * * @var string */ private $prompt; /** * Quality level, e.g. 'medium'. * * @var string */ private $quality; /** * Creates the input. * * @param string $person Sanitised shopper photo. * @param ReferenceImage[] $references Product images, in prompt order. * @param string $prompt Server-built prompt. * @param string $quality Quality level. */ public function __construct( string $person, array $references, string $prompt, string $quality ) { $this->person = $person; $this->references = array_values( $references ); $this->prompt = $prompt; $this->quality = $quality; } /** * Shopper photo bytes. */ public function person(): string { return $this->person; } /** * Product images, in prompt order. * * @return list */ public function references(): array { return $this->references; } /** * Prompt text. */ public function prompt(): string { return $this->prompt; } /** * Quality level. */ public function quality(): string { return $this->quality; } }