| Conditions | 4 |
| Paths | 8 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function creating(Docs $docs): void |
||
| 37 | { |
||
| 38 | if (! $docs->github_org) { |
||
|
|
|||
| 39 | $docs->github_org = $this->config->getOrg(); |
||
| 40 | } |
||
| 41 | |||
| 42 | if (! $docs->github_repo) { |
||
| 43 | $docs->github_repo = $this->config->getRepo(); |
||
| 44 | } |
||
| 45 | |||
| 46 | if (! $docs->github_branch) { |
||
| 47 | $docs->github_branch = $this->config->getBranch(); |
||
| 48 | } |
||
| 49 | } |
||
| 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@propertyannotation 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.