You are here

trait BrowserPageTrait in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserPageTrait.php \Zumba\GastonJS\Browser\BrowserPageTrait

Trait BrowserPageTrait @package Zumba\GastonJS\Browser

Hierarchy

File

vendor/jcalderonzumba/gastonjs/src/Browser/BrowserPageTrait.php, line 9

Namespace

Zumba\GastonJS\Browser
View source
trait BrowserPageTrait {

  /**
   * Gets the status code of the request we are currently in
   * @return mixed
   */
  public function getStatusCode() {
    return $this
      ->command('status_code');
  }

  /**
   * Returns the body of the response to a given browser request
   * @return mixed
   */
  public function getBody() {
    return $this
      ->command('body');
  }

  /**
   * Returns the source of the current page
   * @return mixed
   */
  public function getSource() {
    return $this
      ->command('source');
  }

  /**
   * Gets the current page title
   * @return mixed
   */
  public function getTitle() {
    return $this
      ->command('title');
  }

  /**
   * Resize the current page
   * @param $width
   * @param $height
   * @return mixed
   */
  public function resize($width, $height) {
    return $this
      ->command('resize', $width, $height);
  }

  /**
   * Resets the page we are in to a clean slate
   * @return mixed
   */
  public function reset() {
    return $this
      ->command('reset');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BrowserPageTrait::getBody public function Returns the body of the response to a given browser request
BrowserPageTrait::getSource public function Returns the source of the current page
BrowserPageTrait::getStatusCode public function Gets the status code of the request we are currently in
BrowserPageTrait::getTitle public function Gets the current page title
BrowserPageTrait::reset public function Resets the page we are in to a clean slate
BrowserPageTrait::resize public function Resize the current page