Newer
Older
Klaranouba7
a validé
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
* This file is part of the API Platform project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace ApiPlatform\Core\OpenApi\Model;
final class OAuthFlow
{
use ExtensionTrait;
private $authorizationUrl;
private $tokenUrl;
private $refreshUrl;
private $scopes;
public function __construct(string $authorizationUrl = null, string $tokenUrl = null, string $refreshUrl = null, \ArrayObject $scopes = null)
{
$this->authorizationUrl = $authorizationUrl;
$this->tokenUrl = $tokenUrl;
$this->refreshUrl = $refreshUrl;
$this->scopes = $scopes;
}
public function getAuthorizationUrl(): ?string
{
return $this->authorizationUrl;
}
public function getTokenUrl(): ?string
{
return $this->tokenUrl;
}
public function getRefreshUrl(): ?string
{
return $this->refreshUrl;
}
public function getScopes(): \ArrayObject
{
return $this->scopes;
}
public function withAuthorizationUrl(string $authorizationUrl): self
{
$clone = clone $this;
$clone->authorizationUrl = $authorizationUrl;
return $clone;
}
public function withTokenUrl(string $tokenUrl): self
{
$clone = clone $this;
$clone->tokenUrl = $tokenUrl;
return $clone;
}
public function withRefreshUrl(string $refreshUrl): self
{
$clone = clone $this;
$clone->refreshUrl = $refreshUrl;
return $clone;
}
public function withScopes(\ArrayObject $scopes): self
{
$clone = clone $this;
$clone->scopes = $scopes;
return $clone;
}
}