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 | * Fetch and return the message received on header data. |
||
39 | * |
||
40 | * @param \StdClass $data |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getMessage(StdClass $data) |
||
47 | |||
48 | /** |
||
49 | * Fetch and return motives descriptions from received detail data. |
||
50 | * |
||
51 | * @param \StdClass $data |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getMotives(StdClass $data) |
||
61 | |||
62 | /** |
||
63 | * Returns the file header. |
||
64 | * |
||
65 | * @return \StdClass |
||
66 | */ |
||
67 | public function header() |
||
74 | |||
75 | /** |
||
76 | * Check and return if received data has some error status. |
||
77 | * |
||
78 | * @param \StdClass $data |
||
79 | * @return boolean |
||
80 | */ |
||
81 | public function wasAnError(StdClass $data) |
||
87 | |||
88 | /** |
||
89 | * Check and return if received data has entry confirmed status. |
||
90 | * |
||
91 | * @param \StdClass $data |
||
92 | * @return boolean |
||
93 | */ |
||
94 | public function wasEntryConfirmed(StdClass $data) |
||
100 | |||
101 | /** |
||
102 | * Check and return if received data has discharged status. |
||
103 | * |
||
104 | * @param \StdClass $data |
||
105 | * @return boolean |
||
106 | */ |
||
107 | public function wasDischarged(StdClass $data) |
||
113 | |||
114 | /** |
||
115 | * Check and return if received data has paid status. |
||
116 | * |
||
117 | * @param \StdClass $data |
||
118 | * @return boolean |
||
119 | */ |
||
120 | public function wasPaid(StdClass $data) |
||
126 | |||
127 | /** |
||
128 | * Check and return if received data has protested status. |
||
129 | * |
||
130 | * @param \StdClass $data |
||
131 | * @return boolean |
||
132 | */ |
||
133 | public function wasProtested(StdClass $data) |
||
139 | |||
140 | /** |
||
141 | * Specialized mapper method for one line parsing. |
||
142 | * |
||
143 | * @param string $detail |
||
144 | * @return \StdClass |
||
145 | */ |
||
146 | protected function detailMapper($detail) |
||
153 | |||
154 | /** |
||
155 | * @return mixed |
||
156 | */ |
||
157 | protected function getCustomGetter($name) |
||
160 | |||
161 | /** |
||
162 | * @return array |
||
163 | */ |
||
164 | protected function parseCustomGetters() |
||
167 | |||
168 | /** |
||
169 | * Parsed and set the status attributes on received detail data. |
||
170 | * |
||
171 | * @param \StdClass $detail |
||
172 | * @return \StdClass |
||
173 | */ |
||
174 | protected function parseStatusAttributes(StdClass $detail) |
||
185 | } |
||
186 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.