| 1 | <?php |
||
| 16 | class EmailConstraintBuilder implements ConstraintBuilderInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * if this builder supports a given constraint |
||
| 20 | * |
||
| 21 | * @param string $type Field type |
||
| 22 | * @param array $options Options |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function supportsConstraint($type, array $options = []) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Adds constraints to the property |
||
| 33 | * |
||
| 34 | * @param string $fieldName field name |
||
| 35 | * @param Schema $property property |
||
| 36 | * @param DocumentModel $model parent model |
||
| 37 | * @param array $options the constraint options |
||
| 38 | * |
||
| 39 | * @return Schema the modified property |
||
| 40 | */ |
||
| 41 | public function buildConstraint($fieldName, Schema $property, DocumentModel $model, array $options) |
||
| 46 | } |
||
| 47 |