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) |
||
60 | |||
61 | /** |
||
62 | * Returns the file header. |
||
63 | * |
||
64 | * @return \StdClass |
||
65 | */ |
||
66 | public function header() |
||
73 | |||
74 | /** |
||
75 | * Check and return if received data has some error status. |
||
76 | * |
||
77 | * @param \StdClass $data |
||
78 | * @return boolean |
||
79 | */ |
||
80 | public function wasAnError(StdClass $data) |
||
86 | |||
87 | /** |
||
88 | * Check and return if received data has entry confirmed status. |
||
89 | * |
||
90 | * @param \StdClass $data |
||
91 | * @return boolean |
||
92 | */ |
||
93 | public function wasEntryConfirmed(StdClass $data) |
||
99 | |||
100 | /** |
||
101 | * Check and return if received data has discharged status. |
||
102 | * |
||
103 | * @param \StdClass $data |
||
104 | * @return boolean |
||
105 | */ |
||
106 | public function wasDischarged(StdClass $data) |
||
112 | |||
113 | /** |
||
114 | * Check and return if received data has paid status. |
||
115 | * |
||
116 | * @param \StdClass $data |
||
117 | * @return boolean |
||
118 | */ |
||
119 | public function wasPaid(StdClass $data) |
||
125 | |||
126 | /** |
||
127 | * Check and return if received data has protested status. |
||
128 | * |
||
129 | * @param \StdClass $data |
||
130 | * @return boolean |
||
131 | */ |
||
132 | public function wasProtested(StdClass $data) |
||
138 | |||
139 | /** |
||
140 | * Specialized mapper method for one line parsing. |
||
141 | * |
||
142 | * @param string $detail |
||
143 | * @return \StdClass |
||
144 | */ |
||
145 | protected function detailMapper($detail) |
||
152 | |||
153 | /** |
||
154 | * @return mixed |
||
155 | */ |
||
156 | protected function getCustomGetter($name) |
||
159 | |||
160 | /** |
||
161 | * @return array |
||
162 | */ |
||
163 | protected function parseCustomGetters() |
||
166 | |||
167 | /** |
||
168 | * Parsed and set the status attributes on received detail data. |
||
169 | * |
||
170 | * @param \StdClass $detail |
||
171 | * @return \StdClass |
||
172 | */ |
||
173 | protected function parseStatusAttributes(StdClass $detail) |
||
184 | } |
||
185 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.