1 | <?php |
||
22 | class IdTokenBuilderFactory |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $issuer; |
||
28 | |||
29 | /** |
||
30 | * @var UserInfo |
||
31 | */ |
||
32 | private $userinfo; |
||
33 | |||
34 | /** |
||
35 | * @var int |
||
36 | */ |
||
37 | private $lifetime; |
||
38 | |||
39 | /** |
||
40 | * @var null|JKUFactory |
||
41 | */ |
||
42 | private $jkuFactory = null; |
||
43 | |||
44 | /** |
||
45 | * @var null|AuthorizationCodeRepository |
||
46 | */ |
||
47 | private $authorizationCodeRepository = null; |
||
48 | |||
49 | /** |
||
50 | * IdTokenBuilder constructor. |
||
51 | * |
||
52 | * @param string $issuer |
||
53 | * @param UserInfo $userinfo |
||
54 | * @param int $lifetime |
||
55 | */ |
||
56 | public function __construct(string $issuer, UserInfo $userinfo, int $lifetime) |
||
62 | |||
63 | /** |
||
64 | * @param Client $client |
||
65 | * @param UserAccount $userAccount |
||
66 | * @param string $redirectUri |
||
67 | * |
||
68 | * @return IdTokenBuilder |
||
|
|||
69 | */ |
||
70 | public function createBuilder(Client $client, UserAccount $userAccount, string $redirectUri) |
||
74 | |||
75 | public function enableJkuSupport(JKUFactory $jkuFactory): void |
||
79 | |||
80 | public function enableAuthorizationCodeSupport(AuthorizationCodeRepository $authorizationCodeRepository): void |
||
84 | } |
||
85 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.