1 | <?php |
||
34 | class Customer extends Model |
||
35 | { |
||
36 | const EVENT_CREATE = 'charge.create'; |
||
37 | const EVENT_UPDATE = 'charge.update'; |
||
38 | const EVENT_UPDATE_CARD = 'charge.update.card'; |
||
39 | const EVENT_DESTROY = 'charge.destroy'; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $cardToken; |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | 6 | public function getCreateData() |
|
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | 2 | public function getUpdateData() |
|
66 | |||
67 | /** |
||
68 | * @return array|Card[] |
||
69 | */ |
||
70 | public function getCards() |
||
78 | |||
79 | /** |
||
80 | * @param $id |
||
81 | * |
||
82 | * @return Card|null |
||
83 | */ |
||
84 | public function findCard($id) |
||
99 | } |
||
100 |