aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/OAuth2/Bridge/ClientEntity.php
blob: 106caa03733a36cfb4e77b130e96e1bb6464c835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Studip\OAuth2\Bridge;

use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;

class ClientEntity implements ClientEntityInterface
{
    use ClientTrait;
    use EntityTrait;

    /**
     * @param string          $identifier
     * @param string          $name
     * @param string|string[] $redirectUri
     * @param bool $isConfidential
     */
    public function __construct($identifier, $name, $redirectUri, $isConfidential)
    {
        $this->identifier = $identifier;
        $this->name = $name;
        $this->redirectUri = $redirectUri;
        $this->isConfidential = $isConfidential;
    }
}