1 | <?php |
||
21 | class ApproveControl extends Control implements LoggerAwareInterface |
||
22 | { |
||
23 | use LoggerAwareTrait; |
||
24 | use Psr7Trait; |
||
25 | use SecuredLinksControlTrait; |
||
26 | |||
27 | /** |
||
28 | * @var callable[] |
||
29 | */ |
||
30 | public $onResponse; |
||
31 | |||
32 | /** |
||
33 | * @var AuthorizationRequest |
||
34 | */ |
||
35 | private $authorizationRequest; |
||
36 | |||
37 | /** |
||
38 | * @var AuthorizationServer |
||
39 | */ |
||
40 | private $authorizationServer; |
||
41 | |||
42 | /** |
||
43 | * @var Session |
||
44 | */ |
||
45 | private $session; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | private $templateFile; |
||
51 | |||
52 | /** |
||
53 | * @param AuthorizationServer $authorizationServer |
||
54 | * @param Session $session |
||
55 | * @param AuthorizationRequest $authorizationRequest |
||
56 | */ |
||
57 | public function __construct(AuthorizationServer $authorizationServer, Session $session, AuthorizationRequest $authorizationRequest) |
||
64 | |||
65 | public function render() |
||
71 | |||
72 | /** |
||
73 | * @secured |
||
74 | */ |
||
75 | public function handleApprove() |
||
80 | |||
81 | /** |
||
82 | * @secured |
||
83 | */ |
||
84 | public function handleDeny() |
||
89 | |||
90 | private function completeAuthorizationRequest() |
||
113 | |||
114 | /** |
||
115 | * @param string $file |
||
116 | */ |
||
117 | public function setTemplateFile(string $file) |
||
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.