Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function run(User $user, $some_id) |
||
43 | { |
||
44 | $paypalAccount = new PaypalAccount(); |
||
45 | $paypalAccount->some_id = $some_id; // TODO: To Be Continue... |
||
|
|||
46 | $paypalAccount->user()->associate($user); |
||
47 | |||
48 | $paypalAccount = $this->paypalAccountRepository->create($paypalAccount->toArray()); |
||
49 | |||
50 | return $paypalAccount; |
||
51 | } |
||
52 | |||
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.