public function setTitle($title = null)
        {
            if (null !== $title && !is_string($title)) {
                throw new Exception(
                        'Invalid argument: $title must be a non-empty string');
            }

            $this->_title = $title;

            return $this;
        }
public function setTitle($title = null)
        {
            if (null !== $title && !is_string($title)) {
                throw new Exception(
                        'Invalid argument: $title must be a non-empty string');
            }

            $this->_title = $title;

            return $this;
        }
public function setTitle ( $ title = null ) { if ( null !== $ title && ! is_string ( $ title ) ) { throw new Exception ( 'Invalid argument: $title must be a non-empty string' ) ; } $ this -> _title = $ title ; return $ this ; }
Sets page title

@param  string $title              [optional] page title. Default is
null, which sets no title.
@return Page       fluent interface, returns self
@throws Exception  if not given string or null
Sets page title