src/PhrestSDK.php
public function setApp(PhrestAPI $app)
  {
    $this->app = $app;
    $this->app->isInternalRequest = true;

    return $this;
  }
public function setApp(PhrestAPI $app)
  {
    $this->app = $app;
    $this->app->isInternalRequest = true;

    return $this;
  }
public function setApp ( PhrestAPI $ app ) { $ this -> app = $ app ; $ this -> app -> isInternalRequest = true ; return $ this ; }
Set the API instance

@param PhrestAPI $app

@return $this
Set the API instance