1 | <?php |
||
11 | class CreatePasteFormValidator |
||
|
|||
12 | { |
||
13 | /** |
||
14 | * Self fabric method just for convenience. |
||
15 | * |
||
16 | * @return CreatePasteFormValidator |
||
17 | */ |
||
18 | 8 | public static function create(): CreatePasteFormValidator |
|
22 | |||
23 | /** |
||
24 | * CreatePasteValidator constructor. |
||
25 | */ |
||
26 | 8 | private function __construct() |
|
29 | |||
30 | /** |
||
31 | * Validates given data to comply with entity requirements. |
||
32 | * |
||
33 | * @param array $data |
||
34 | * |
||
35 | * @return ConstraintViolationListInterface |
||
36 | */ |
||
37 | 7 | public function validate(array $data): ConstraintViolationListInterface |
|
53 | } |
||
54 |