protected function setTitle($title)
    {
        if (0 === strlen(trim($title))) {
            throw new \InvalidArgumentException('Provided title cannot be empty');
        }

        $this->title = (string) $title;
    }
protected function setTitle($title)
    {
        if (0 === strlen(trim($title))) {
            throw new \InvalidArgumentException('Provided title cannot be empty');
        }

        $this->title = (string) $title;
    }
protected function setTitle ( $ title ) { if ( 0 === strlen ( trim ( $ title ) ) ) { throw new \ InvalidArgumentException ( 'Provided title cannot be empty' ) ; } $ this -> title = ( string ) $ title ; }
A short, human-readable summary of the problem that SHOULD NOT change from occurrence to
occurrence of the problem, except for purposes of localization.

@param string $title

@throws \InvalidArgumentException
A short human - readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem except for purposes of localization .