Chris@0: command('status_code'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Returns the body of the response to a given browser request Chris@0: * @return mixed Chris@0: */ Chris@0: public function getBody() { Chris@0: return $this->command('body'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Returns the source of the current page Chris@0: * @return mixed Chris@0: */ Chris@0: public function getSource() { Chris@0: return $this->command('source'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Gets the current page title Chris@0: * @return mixed Chris@0: */ Chris@0: public function getTitle() { Chris@0: return $this->command('title'); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Resize the current page Chris@0: * @param $width Chris@0: * @param $height Chris@0: * @return mixed Chris@0: */ Chris@0: public function resize($width, $height) { Chris@0: return $this->command('resize', $width, $height); Chris@0: } Chris@0: Chris@0: /** Chris@0: * Resets the page we are in to a clean slate Chris@0: * @return mixed Chris@0: */ Chris@0: public function reset() { Chris@0: return $this->command('reset'); Chris@0: } Chris@0: }