1 | <?php |
||
16 | class CreatePaypalAccountObjectTask extends Task |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @var \App\Containers\Paypal\Data\Repositories\PaypalAccountRepository |
||
21 | */ |
||
22 | private $paypalAccountRepository; |
||
23 | |||
24 | /** |
||
25 | * CreatePaypalAccountTask constructor. |
||
26 | * |
||
27 | * @param \App\Containers\Paypal\Data\Repositories\PaypalAccountRepository $paypalAccountRepository |
||
28 | */ |
||
29 | public function __construct(PaypalAccountRepository $paypalAccountRepository) |
||
33 | |||
34 | /** |
||
35 | * Create paypal account in my database |
||
36 | * |
||
37 | * @param \App\Containers\User\Models\User $user |
||
38 | * @param $some_id |
||
39 | * |
||
40 | * @return \App\Containers\Paypal\Models\PaypalAccount|mixed |
||
41 | */ |
||
42 | public function run(User $user, $some_id) |
||
52 | |||
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.