1 | <?php |
||
15 | class StripeConnect |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | */ |
||
21 | private static function prepare() |
||
25 | |||
26 | /** |
||
27 | * @param $user |
||
28 | * @return Stripe |
||
29 | */ |
||
30 | private static function getStripeModel($user) |
||
40 | |||
41 | /** |
||
42 | * @param $to |
||
43 | * @param array $params |
||
44 | * @return Stripe |
||
45 | */ |
||
46 | public static function createAccount($to, $params = []) |
||
56 | |||
57 | /** |
||
58 | * @param $token |
||
59 | * @param $from |
||
60 | * @param array $params |
||
61 | * @return Stripe |
||
62 | */ |
||
63 | public static function createCustomer($token, $from, $params = []) |
||
73 | |||
74 | /** |
||
75 | * @param $token |
||
76 | * @param $from |
||
77 | * @param array $params |
||
78 | * @return Stripe |
||
79 | */ |
||
80 | public function createOrUpdateCustomer($token, $from, $params = []) |
||
93 | |||
94 | /** |
||
95 | * @param $user |
||
96 | * @param $id_key |
||
97 | * @param $callback |
||
98 | * @return Stripe |
||
99 | */ |
||
100 | private static function create($user, $id_key, $callback) { |
||
109 | |||
110 | /** |
||
111 | * @param null $token |
||
112 | * @return Transaction |
||
113 | */ |
||
114 | public static function transaction($token = null) |
||
118 | } |
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.