| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function __invoke(string $pageNavigationToken, int $pageNumber = 1) |
||
| 47 | { |
||
| 48 | $this->appendToQuery('pageNumber', $pageNumber); |
||
| 49 | |||
| 50 | // Set HTTP params |
||
| 51 | $this->type = 'get'; |
||
| 52 | $this->endpoint = '/availability/matchingslots/' . $pageNavigationToken . '?' . $this->getQuery(); |
||
| 53 | $this->response = MatchingSlotList::class; |
||
| 54 | |||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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@propertyannotation 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.