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

            $this->_target = $target;

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

            $this->_target = $target;

            return $this;
        }
public function setTarget ( $ target = null ) { if ( null !== $ target && ! is_string ( $ target ) ) { throw new Exception ( 'Invalid argument: $target must be a string or null' ) ; } $ this -> _target = $ target ; return $ this ; }
Sets page target

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