spouse??null; } public function setSpouse(Person|string|array $spouse):void { if (is_array($spouse)) { $spouse = $this->mixedArray('spouse', $spouse, [ 'string', 'JVBase\managers\SEO\render\Thing\Person\Person' ]); } $this->spouse = $spouse; } }