1 | <?php |
||
4 | trait VerifiesPurchase { |
||
5 | |||
6 | |||
7 | /** |
||
8 | * Customer Entity |
||
9 | * |
||
10 | * @var mixed |
||
11 | **/ |
||
12 | protected $customer; |
||
13 | |||
14 | /** |
||
15 | * Verify validity of the purchase key and if valid create customer |
||
16 | * |
||
17 | * @return void |
||
18 | * |
||
19 | **/ |
||
20 | public function verifyPurchase() |
||
35 | |||
36 | /** |
||
37 | * Return invalid key response |
||
38 | * |
||
39 | * @return Illuminate\Http\Response |
||
40 | **/ |
||
41 | protected function invalidKeyResponse() |
||
45 | |||
46 | /** |
||
47 | * Set the customer object |
||
48 | * |
||
49 | * @return void |
||
50 | **/ |
||
51 | protected function getCustomer() |
||
55 | |||
56 | /** |
||
57 | * Return a success response if the purchase key is valid. |
||
58 | * |
||
59 | * @return Illuminate\Http\Response json object response |
||
60 | **/ |
||
61 | protected function validKeyResponse() |
||
65 | } |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.