1 | <?php |
||
17 | class GitHubConfigObserver |
||
18 | { |
||
19 | /** |
||
20 | * @var GitHubConfigRepository |
||
21 | */ |
||
22 | private $config; |
||
23 | |||
24 | /** |
||
25 | * GitHubConfigObserver constructor. |
||
26 | * @param GitHubConfigRepository $config |
||
27 | */ |
||
28 | public function __construct(GitHubConfigRepository $config) |
||
32 | |||
33 | /** |
||
34 | * @param Docs $docs |
||
35 | */ |
||
36 | public function creating(Docs $docs): void |
||
50 | } |
||
51 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read 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.