targetObject = $targetObject['target_object'] ?? null; $this->isCollection = $targetObject['is_collection'] ?? $isCollection; $this->options = $targetObject['options'] ?? $options; } else { $this->targetObject = $targetObject; $this->isCollection = $isCollection; $this->options = $options; } } /** * Retrieve the composed object classname */ public function getComposedObject(): ?string { return $this->targetObject; } /** * Is this composed object a collection or not */ public function isCollection(): bool { return $this->isCollection; } /** * Retrieve the options for the composed object * * @return array */ public function getOptions(): array { return $this->options; } }