1 | <?php |
||
14 | class MatchingSlots extends Availability |
||
15 | { |
||
16 | /** |
||
17 | * Create a search for available slots that match the given search parameters. |
||
18 | * Note that there are two different searches possible, /availability/slots and /availability/matchingslots (this endpoint). |
||
19 | * The former simply shows the number of available seats for each available slot. The latter (this one) takes as input the participant numbers, and shows the slots that are available for those numbers, and an estimate of the price. |
||
20 | * Parameters include product code, number of people and options. |
||
21 | * The successful response also contains a "Location" HTTP header, which can be invoked to navigate the results of the search. |
||
22 | * |
||
23 | * @param MatchingSlotsSearchParameters $search |
||
24 | * |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function search(MatchingSlotsSearchParameters $search): self |
||
37 | |||
38 | /** |
||
39 | * Navigate results of a matching slots search |
||
40 | * |
||
41 | * @param string $pageNavigationToken |
||
42 | * @param int $pageNumber |
||
43 | * |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function __invoke(string $pageNavigationToken, int $pageNumber = 1) |
||
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@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.