| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class IsBase64Type extends IsBase64 |
||
| 9 | { |
||
| 10 | use ValidatesBase64; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The base64 types to check in the test. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $types; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a notification instance. |
||
| 21 | * |
||
| 22 | * @param string|array $type |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function __construct($types) |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determine if the validation rule passes. |
||
| 32 | * |
||
| 33 | * @param string $attribute |
||
| 34 | * @param mixed $value |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function passes($attribute, $value) |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get the validation error message. |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function message(): string |
||
| 56 |