Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
27 | public function search(MatchingSlotsSearchParameters $search): self |
||
28 | { |
||
29 | // Set HTTP params |
||
30 | $this->type = 'post'; |
||
31 | $this->endpoint = '/availability/matchingslots' . '?' . $this->getQuery(); |
||
32 | $this->params = $search; |
||
33 | $this->response = MatchingSlotList::class; |
||
|
|||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
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@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.