1 | <?php namespace Arcanedev\Currencies\Validators; |
||
11 | class CurrencyValidator |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Properties |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** @var \Arcanedev\Currencies\Contracts\CurrencyManager */ |
||
18 | protected $manager; |
||
19 | |||
20 | /* ------------------------------------------------------------------------------------------------ |
||
21 | | Constructor |
||
22 | | ------------------------------------------------------------------------------------------------ |
||
23 | */ |
||
24 | /** |
||
25 | * CurrencyValidator constructor. |
||
26 | * |
||
27 | * @param \Arcanedev\Currencies\Contracts\CurrencyManager $manager |
||
28 | */ |
||
29 | public function __construct(CurrencyManager $manager) |
||
33 | |||
34 | /* ------------------------------------------------------------------------------------------------ |
||
35 | | Main Functions |
||
36 | | ------------------------------------------------------------------------------------------------ |
||
37 | */ |
||
38 | public function validateCurrencyIso($attribute, $value, $parameters, $validator) |
||
49 | |||
50 | /** |
||
51 | * @param string $attribute |
||
52 | * @param mixed $value |
||
53 | * @param array $parameters |
||
54 | * @param \Illuminate\Validation\Validator $validator |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function validateCurrencySupported($attribute, $value, $parameters, $validator) |
||
69 | } |
||
70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.