1 | <?php |
||
7 | class UniqueObject extends Constraint |
||
8 | { |
||
9 | const TYPE_OUT_RANGE = 'OUT_RANGE'; |
||
10 | |||
11 | /** @var string */ |
||
12 | protected $message = 'Non-unique object found.'; |
||
13 | |||
14 | /** @var array */ |
||
15 | protected $properties = []; |
||
16 | |||
17 | /** @var array */ |
||
18 | protected $getters = []; |
||
19 | |||
20 | /** @var bool */ |
||
21 | protected $strict = true; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $uniqid; |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | public function validatedBy() |
||
33 | |||
34 | /** |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getRequiredOptions() |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getMessage() |
||
49 | |||
50 | /** |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getProperties() |
||
57 | |||
58 | /** |
||
59 | * @return array |
||
60 | */ |
||
61 | public function getGetters() |
||
65 | |||
66 | /** |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function getStrict() |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getUniqid() |
||
81 | } |
||
82 |