1 | <?php |
||
10 | class Client implements ClientEntityInterface |
||
11 | { |
||
12 | use ClientTrait; |
||
13 | |||
14 | /** |
||
15 | * The client identifier. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $identifier; |
||
20 | |||
21 | /** |
||
22 | * The client's user type. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public $userType; |
||
27 | |||
28 | /** |
||
29 | * Create a new client instance. |
||
30 | * |
||
31 | * @param string $identifier |
||
32 | * @param string $name |
||
33 | * @param string $redirectUri |
||
34 | * @param string $userType |
||
35 | * @param bool $isConfidential |
||
36 | * |
||
37 | * @return void |
||
|
|||
38 | */ |
||
39 | public function __construct($identifier, $name, $redirectUri, $userType, $isConfidential = false) |
||
48 | |||
49 | /** |
||
50 | * Get the client's identifier. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getIdentifier() |
||
58 | |||
59 | /** |
||
60 | * Set the client's identifier. |
||
61 | * |
||
62 | * @param string $identifier |
||
63 | * |
||
64 | * @return void |
||
65 | */ |
||
66 | public function setIdentifier($identifier) |
||
70 | } |
||
71 |
Adding a
@return
annotation 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.