public function setPublisher($publisher)
    {
        ObjectHelper::isInstanceOf($publisher, [Organization::class, Person::class]);
        
        $this->_publisher = $publisher;
        return $this;
    }
public function setPublisher($publisher)
    {
        ObjectHelper::isInstanceOf($publisher, [Organization::class, Person::class]);
        
        $this->_publisher = $publisher;
        return $this;
    }
public function setPublisher ( $ publisher ) { ObjectHelper :: isInstanceOf ( $ publisher , [ Organization :: class , Person :: class ] ) ; $ this -> _publisher = $ publisher ; return $ this ; }
The publisher of the creative work.

@param Organization|Person $publisher
@return static
The publisher of the creative work .