You are here

public function Subrequest::__construct in Subrequests 8.2

Same name and namespace in other branches
  1. 3.x src/Subrequest.php \Drupal\subrequests\Subrequest::__construct()

File

src/Subrequest.php, line 59

Class

Subrequest
Value object containing a Subrequest.

Namespace

Drupal\subrequests

Code

public function __construct($values) {
  $this->requestId = $values['requestId'];
  $this->body = $values['body'];
  $this->headers = $values['headers'];
  $this->waitFor = $values['waitFor'];
  $this->_resolved = $values['_resolved'];
  $this->uri = $values['uri'];
  $this->action = $values['action'];
}