Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class IdToken implements IdTokenInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $claims; |
||
20 | |||
21 | public function __construct(array $claims) |
||
24 | } |
||
25 | |||
26 | function getClaims() : array |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Specify data which should be serialized to JSON |
||
33 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
34 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
35 | * which is a value of any type other than a resource. |
||
36 | * @since 5.4.0 |
||
37 | */ |
||
38 | public function jsonSerialize() |
||
41 | } |
||
42 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.