1 | <?php |
||
8 | class FakePaymentGateway implements PaymentGateway |
||
9 | { |
||
10 | /** |
||
11 | * @param Int |
||
12 | * @param Illuminate\Database\Eloquent\Model |
||
13 | * @return Payment |
||
14 | */ |
||
15 | public function chargeAmountForPayable( |
||
33 | |||
34 | /** |
||
35 | * @return String |
||
36 | */ |
||
37 | public function getGatewayName() : String |
||
41 | |||
42 | /** |
||
43 | * @param Payment |
||
44 | * @return Payment |
||
45 | */ |
||
46 | public function fetchUpdateFor(Payment $payment) : Payment |
||
53 | } |
||
54 |
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.