| Conditions | 3 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __construct ($slug, $label, $value = '', $errorMsg = validators\IbanFieldValidator::ERROR, $convertBban = false, $openIbanUsername = null, $openIbanPassword = null) |
||
| 23 | { |
||
| 24 | parent::__construct($slug, $label, $value, 0); |
||
| 25 | $this->addSanitizer(new sanitizers\FieldUppercaser()); |
||
| 26 | $this->addSanitizer(new sanitizers\IbanSanitizer($convertBban ? $openIbanUsername : null, $convertBban ? $openIbanPassword : null)); |
||
| 27 | $this->addValidator(new validators\IbanFieldValidator($convertBban, $errorMsg)); |
||
| 28 | } |
||
| 29 | } |