core/web/jsonld/EventTrait.php
public function setContributor($contributor)
    {
        ObjectHelper::isInstanceOf($contributor, [Organization::class, PersonInterface::class]);
        
        $this->_contributor = $contributor;
        return $this;
    }
public function setContributor($contributor)
    {
        ObjectHelper::isInstanceOf($contributor, [Organization::class, PersonInterface::class]);
        
        $this->_contributor = $contributor;
        return $this;
    }
public function setContributor ( $ contributor ) { ObjectHelper :: isInstanceOf ( $ contributor , [ Organization :: class , PersonInterface :: class ] ) ; $ this -> _contributor = $ contributor ; return $ this ; }
A secondary contributor to the CreativeWork or Event.

@param Organization|Person $contributor
@return static
A secondary contributor to the CreativeWork or Event .