typeOfGood??null; } public function setTypeOfGood(Product|Service|array $typeOfGood):void { if (is_array($typeOfGood)) { $typeOfGood = $this->mixedArray('typeOfGood', $typeOfGood, [ 'JVBase\managers\SEO\render\Thing\Intangible\Service', 'JVBase\managers\SEO\render\Thing\Product\Product' ]); } $this->typeOfGood = $typeOfGood; } }