1 | <?php |
||
21 | * @method void onResponse(IResponse $response) |
||
22 | */ |
||
23 | final class ApproveControl extends Control implements LoggerAwareInterface |
||
24 | { |
||
25 | use LoggerAwareTrait; |
||
26 | use Psr7Trait; |
||
27 | use SecuredLinksControlTrait; |
||
28 | |||
29 | /** |
||
30 | * @var callable[] |
||
31 | */ |
||
32 | public $onResponse; |
||
33 | |||
34 | /** |
||
35 | * @var AuthorizationRequest |
||
36 | */ |
||
37 | private $authorizationRequest; |
||
38 | |||
39 | /** |
||
40 | * @var AuthorizationServer |
||
41 | */ |
||
42 | private $authorizationServer; |
||
43 | |||
44 | /** |
||
45 | * @var Session |
||
46 | */ |
||
47 | private $session; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $templateFile; |
||
53 | |||
54 | public function __construct(AuthorizationServer $authorizationServer, Session $session, AuthorizationRequest $authorizationRequest) |
||
62 | |||
63 | public function render() |
||
69 | |||
70 | /** |
||
71 | * @secured |
||
72 | */ |
||
73 | public function handleApprove() |
||
78 | |||
79 | /** |
||
80 | * @secured |
||
81 | */ |
||
82 | public function handleDeny() |
||
87 | |||
88 | private function completeAuthorizationRequest() |
||
115 | |||
116 | public function setTemplateFile(string $file) |
||
120 | |||
121 | } |
||
122 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.