Psecio\Jwt\Jwt::__construct PHP Метод

__construct() публичный Метод

Initialize the object and set the header and claims collection Empty claims collection is set if none is given
public __construct ( Header $header, ClaimsCollection $collection = null )
$header Header Header instance to set on JWT object
$collection ClaimsCollection Claims collection [optional]
    public function __construct(\Psecio\Jwt\Header $header, \Psecio\Jwt\ClaimsCollection $collection = null)
    {
        $this->setHeader($header);
        if ($collection == null) {
            $collection = new \Psecio\Jwt\ClaimsCollection();
        }
        $this->setClaims($collection);
    }