1 | <?php |
||
22 | class TextAttributeType implements AttributeTypeInterface |
||
23 | { |
||
24 | const TYPE = 'text'; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function getStorageType() |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function getType() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function validate(AttributeValueInterface $attributeValue, ExecutionContextInterface $context, array $configuration) |
||
61 | |||
62 | /** |
||
63 | * @param ExecutionContextInterface $context |
||
64 | * @param string $value |
||
65 | * @param array $validationConfiguration |
||
66 | * |
||
67 | * @return ConstraintViolationListInterface |
||
68 | */ |
||
69 | private function getValidationErrors(ExecutionContextInterface $context, $value, array $validationConfiguration) |
||
81 | } |
||
82 |