| 1 | <?php |
||
| 18 | class IdInPostValidator extends ConstraintValidator |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Checks if the ID is not in the payload of a POST request |
||
| 23 | * |
||
| 24 | * @param string $value Input value |
||
| 25 | * @param Constraint $constraint Constraint instance |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function validate($value, Constraint $constraint) |
||
| 37 | } |
||
| 38 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.