public function setId($id = null)
        {
            if (null !== $id && !is_string($id) && !is_numeric($id)) {
                throw new Exception(
                        'Invalid argument: $id must be a string, number or null');
            }

            $this->_id = null === $id ? $id : (string) $id;

            return $this;
        }
public function setId($id = null)
        {
            if (null !== $id && !is_string($id) && !is_numeric($id)) {
                throw new Exception(
                        'Invalid argument: $id must be a string, number or null');
            }

            $this->_id = null === $id ? $id : (string) $id;

            return $this;
        }
public function setId ( $ id = null ) { if ( null !== $ id && ! is_string ( $ id ) && ! is_numeric ( $ id ) ) { throw new Exception ( 'Invalid argument: $id must be a string, number or null' ) ; } $ this -> _id = null === $ id ? $ id : ( string ) $ id ; return $ this ; }
Sets page id

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