core/web/jsonld/EventTrait.php
public function setOrganizer($organizer)
    {
        ObjectHelper::isInstanceOf($organizer, [Organization::class, PersonInterface::class]);
        
        $this->_organizer = $organizer;
        return $this;
    }
public function setOrganizer($organizer)
    {
        ObjectHelper::isInstanceOf($organizer, [Organization::class, PersonInterface::class]);
        
        $this->_organizer = $organizer;
        return $this;
    }
public function setOrganizer ( $ organizer ) { ObjectHelper :: isInstanceOf ( $ organizer , [ Organization :: class , PersonInterface :: class ] ) ; $ this -> _organizer = $ organizer ; return $ this ; }
An organizer of an Event.

@param Organization|Person $organizer
@return static
An organizer of an Event .