public function setFragment($fragment)
        {
            if (null !== $fragment && !is_string($fragment)) {
                throw new Exception(
                        'Invalid argument: $fragment must be a string or null');
            }

            $this->_fragment = $fragment;
            return $this;
        }
public function setFragment($fragment)
        {
            if (null !== $fragment && !is_string($fragment)) {
                throw new Exception(
                        'Invalid argument: $fragment must be a string or null');
            }

            $this->_fragment = $fragment;
            return $this;
        }
public function setFragment ( $ fragment ) { if ( null !== $ fragment && ! is_string ( $ fragment ) ) { throw new Exception ( 'Invalid argument: $fragment must be a string or null' ) ; } $ this -> _fragment = $ fragment ; return $ this ; }
Sets a fragment identifier

@param  string $fragment   new fragment identifier
@return Page         fluent interface, returns self
@throws Exception    if empty/no string is given
Sets a fragment identifier