| Total Complexity | 12 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Sns extends Engine |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * returns the name of the bank |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | protected function parseStatementBank() |
||
| 18 | { |
||
| 19 | return 'SNS'; |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function sanitizeAccount($string) |
||
| 23 | { |
||
| 24 | return $string; |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function parseTransactionAccount() |
||
| 37 | } |
||
| 38 | |||
| 39 | protected function parseTransactionAccountName() |
||
| 40 | { |
||
| 41 | $results = []; |
||
| 42 | if (preg_match('/^:86:\s?[A-z\d]+\s(.*?)$/im', $this->getCurrentTransactionData(), $results) |
||
| 43 | && !empty($results[1]) |
||
| 44 | ) { |
||
| 45 | return strtoupper($this->sanitizeAccountName($results[1])); |
||
| 46 | } |
||
| 47 | |||
| 48 | return ''; |
||
| 49 | } |
||
| 50 | |||
| 51 | protected function parseTransactionDescription() |
||
| 63 | } |
||
| 64 | |||
| 65 | private function filterMetaDataFromDescription(&$results) |
||
| 71 | } |
||
| 72 | |||
| 73 | } |
||
| 74 |