| Total Complexity | 5 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Client implements ClientEntityInterface |
||
| 10 | { |
||
| 11 | protected string $identifier; |
||
| 12 | |||
| 13 | protected string $name; |
||
| 14 | |||
| 15 | protected string $redirectUri; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Client constructor. |
||
| 19 | * |
||
| 20 | * @param string $identifier |
||
| 21 | * @param string $name |
||
| 22 | * @param string $redirectUri |
||
| 23 | */ |
||
| 24 | public function __construct(string $identifier, string $name, string $redirectUri) |
||
| 25 | { |
||
| 26 | $this->identifier = $identifier; |
||
| 27 | $this->name = $name; |
||
| 28 | $this->redirectUri = $redirectUri; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the client's identifier. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getIdentifier() |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get the client's name. |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getName() |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Returns the registered redirect URI (as a string). |
||
| 53 | * |
||
| 54 | * Alternatively return an indexed array of redirect URIs. |
||
| 55 | * |
||
| 56 | * @return string|string[] |
||
| 57 | */ |
||
| 58 | public function getRedirectUri() |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Returns true if the client is confidential. |
||
| 65 | * |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | public function isConfidential() |
||
| 74 |