1 | <?php |
||
36 | class RmaValidatorCallback implements CallbackInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The RMA keys utility instance. |
||
41 | * |
||
42 | * @var \TechDivision\Import\Product\Ee\Utils\RmaKeysInterface |
||
43 | */ |
||
44 | protected $rmaKeys = null; |
||
45 | |||
46 | /** |
||
47 | * Initializes the callback with the RMA keys utility instance. |
||
48 | * |
||
49 | * @param \TechDivision\Import\Product\Ee\Utils\RmaKeysInterface $rmaKeys The RMA keys utility instance |
||
50 | */ |
||
51 | public function __construct(RmaKeysInterface $rmaKeys) |
||
55 | |||
56 | /** |
||
57 | * Query whether or not the passed value IS empty and empty values are allowed. |
||
58 | * |
||
59 | * @param string $attributeValue The attribute value to query for |
||
60 | * |
||
61 | * @return boolean TRUE if empty values are allowed and the passed value IS empty |
||
62 | */ |
||
63 | protected function isNullable($attributeValue) |
||
67 | |||
68 | /** |
||
69 | * Will be invoked by the observer it has been registered for. |
||
70 | * |
||
71 | * @param string|null $attributeCode The code of the attribute that has to be validated |
||
72 | * @param string|null $attributeValue The attribute value to be validated |
||
73 | * |
||
74 | * @return void |
||
75 | * @throws \InvalidArgumentException Is thrown, if either the validator has been bound to an invalid column or an invalid value has been found |
||
76 | */ |
||
77 | public function handle($attributeCode = null, $attributeValue = null) |
||
105 | } |
||
106 |