| 1 | <?php |
||
| 8 | class Client implements ClientEntityInterface |
||
| 9 | { |
||
| 10 | use ClientTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The client identifier. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $identifier; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new client instance. |
||
| 21 | * |
||
| 22 | * @param string $identifier |
||
| 23 | * @param string $name |
||
| 24 | * @param string $redirectUri |
||
| 25 | * @param bool $isConfidential |
||
| 26 | * |
||
| 27 | * @return void |
||
|
|
|||
| 28 | */ |
||
| 29 | public function __construct($identifier, $name, $redirectUri, $isConfidential = false) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get the client's identifier. |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getIdentifier() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set the client's identifier. |
||
| 50 | * |
||
| 51 | * @param string $identifier |
||
| 52 | */ |
||
| 53 | public function setIdentifier($identifier) |
||
| 57 | } |
||
| 58 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.