1 | <?php |
||
15 | class Returning extends SupportReturning |
||
16 | { |
||
17 | /** |
||
18 | * Instance of bank support class. |
||
19 | * |
||
20 | * @var \SmartCNAB\Contracts\Support\BankSupportInterface |
||
21 | */ |
||
22 | protected $supportBank; |
||
23 | |||
24 | /** |
||
25 | * Initialize and return a new instance. |
||
26 | * |
||
27 | * @param string $path path of returning file |
||
28 | * @param \SmartCNAB\Support\Picture $picture |
||
29 | */ |
||
30 | public function __construct($path, Picture $picture) |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getMessage(array $data) |
||
43 | |||
44 | /** |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getMotives(array $data) |
||
50 | |||
51 | /** |
||
52 | * @return boolean |
||
53 | */ |
||
54 | public function wasAnError(StdClass $data) |
||
57 | |||
58 | /** |
||
59 | * Check and return if received data has entry confirmed status. |
||
60 | * |
||
61 | * @param \StdClass $data |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public function wasEntryConfirmed(StdClass $data) |
||
70 | |||
71 | /** |
||
72 | * Check and return if received data has discharged status. |
||
73 | * |
||
74 | * @param \StdClass $data |
||
75 | * @return boolean |
||
76 | */ |
||
77 | public function wasDischarged(StdClass $data) |
||
83 | |||
84 | /** |
||
85 | * Check and return if received data has paid status. |
||
86 | * |
||
87 | * @param \StdClass $data |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function wasPaid(StdClass $data) |
||
96 | |||
97 | /** |
||
98 | * Check and return if received data has protested status. |
||
99 | * |
||
100 | * @param \StdClass $data |
||
101 | * @return boolean |
||
102 | */ |
||
103 | public function wasProtested(StdClass $data) |
||
109 | |||
110 | /** |
||
111 | * Specialized mapper method for one line parsing. |
||
112 | * |
||
113 | * @param string $detail |
||
114 | * @return \StdClass |
||
115 | */ |
||
116 | protected function detailMapper($detail) |
||
123 | |||
124 | /** |
||
125 | * @return mixed |
||
126 | */ |
||
127 | protected function getCustomGetter($name) |
||
130 | |||
131 | /** |
||
132 | * @return array |
||
133 | */ |
||
134 | protected function parseCustomGetters() |
||
137 | |||
138 | /** |
||
139 | * Parsed and set the status attributes on received detail data. |
||
140 | * |
||
141 | * @param \StdClass $detail |
||
142 | * @return \StdClass |
||
143 | */ |
||
144 | protected function parseStatusAttributes(StdClass $detail) |
||
154 | } |
||
155 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.