edbizarro/bi-connect

View on GitHub
src/Bi/Connect/ConnectResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Bi\Connect;

use Bi\Connect\Interfaces\ResponseInterface;
use Bi\Connect\Traits\ResponseTrait;
use Tightenco\Collect\Support\Collection;

class ConnectResponse implements ResponseInterface
{
    use ResponseTrait;

    /**
     * ConnectResponse constructor.
     *
     * @param array $header
     * @param array $body
     * @param mixed $rawBody
     */
    public function __construct(array $header, array $body, $rawBody)
    {
        $this->header  = new Collection($header);
        $this->body    = new Collection($body);
        $this->rawBody = $rawBody;
    }
}