core/web/jsonld/EventTrait.php
public function setComposer($composer)
    {
        ObjectHelper::isInstanceOf($author, [Organization::class, PersonInterface::class]);
        
        $this->_composer = $composer;
        return $this;
    }
public function setComposer($composer)
    {
        ObjectHelper::isInstanceOf($author, [Organization::class, PersonInterface::class]);
        
        $this->_composer = $composer;
        return $this;
    }
public function setComposer ( $ composer ) { ObjectHelper :: isInstanceOf ( $ author , [ Organization :: class , PersonInterface :: class ] ) ; $ this -> _composer = $ composer ; return $ this ; }
The person or organization who wrote a composition, or who is the composer of a work performed at some event.

@param Organization|Person $composer
@return static
The person or organization who wrote a composition or who is the composer of a work performed at some event .