| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ReservasValidator implements ValidatorInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | 2 | public static function validate(array $deposit) |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Checks if amount is zero. |
||
| 27 | * |
||
| 28 | * @param string $amount |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | 2 | private static function amountIsZero($amount) |
|
| 33 | { |
||
| 34 | 2 | return $amount == 0; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Checks if the deposit is a withdraw. |
||
| 39 | * |
||
| 40 | * @param string $description |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | 2 | private static function amountIsWithdrawWithoutNotebook($description) |
|
| 47 | } |
||
| 48 | } |
||
| 49 |