LeagueWrap\Response::__construct PHP Method

__construct() public method

The primary content of the response.
public __construct ( string $content, integer $code, array $headers = [] )
$content string
$code integer
$headers array
    public function __construct($content, $code, array $headers = [])
    {
        $this->content = trim($content);
        $this->code = intval($code);
        $this->headers = [];
        foreach ($headers as $name => $values) {
            $this->headers[$name] = $values[0];
        }
    }