forked from laravel/passport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClient.php
35 lines (29 loc) · 871 Bytes
/
Client.php
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
28
29
30
31
32
33
34
35
<?php
namespace Laravel\Passport\Bridge;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
class Client implements ClientEntityInterface
{
use ClientTrait, EntityTrait;
/**
* The client's provider.
*/
public ?string $provider;
/**
* Create a new client instance.
*/
public function __construct(
string $identifier,
string $name,
string|array $redirectUri,
bool $isConfidential = false,
?string $provider = null
) {
$this->setIdentifier($identifier);
$this->name = $name;
$this->isConfidential = $isConfidential;
$this->redirectUri = is_array($redirectUri) ? $redirectUri : [$redirectUri];
$this->provider = $provider;
}
}