public function ReadLimitEntityBody::__toString

Returns only a subset of the decorated entity body when cast as a string

Overrides AbstractEntityBodyDecorator::__toString

File

drupal/core/vendor/guzzle/http/Guzzle/Http/ReadLimitEntityBody.php, line 36

Class

ReadLimitEntityBody
EntityBody decorator used to return only a subset of an entity body

Namespace

Guzzle\Http

Code

public function __toString() {
  return substr((string) $this->body, $this->offset, $this->limit);
}