Total Complexity | 7 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class Variable extends Entity |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | * @since 1.0 |
||
27 | * |
||
28 | * @Id |
||
29 | * @Column(type="string", name="variable_name") |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * @since 1.0 |
||
36 | * |
||
37 | * @Column(type="string", name="variable_value", nullable=true) |
||
38 | */ |
||
39 | protected $value; |
||
40 | |||
41 | /** |
||
42 | * @return bool |
||
43 | * @since 1.0 |
||
44 | */ |
||
45 | public function isExists() |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return mixed |
||
53 | * @since 1.0 |
||
54 | * @static |
||
55 | */ |
||
56 | public static function sanitize($key, $value) |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @throws \InvalidArgumentException |
||
69 | * @return bool |
||
70 | * @since 1.0 |
||
71 | * @static |
||
72 | */ |
||
73 | public static function validate($key, $value) |
||
86 |