Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | interface ValueObject |
||
|
|||
11 | { |
||
12 | /** |
||
13 | * @return string |
||
14 | */ |
||
15 | public function __toString(); |
||
16 | |||
17 | /** |
||
18 | * @param $field |
||
19 | * @param $value |
||
20 | * @throws \RuntimeException |
||
21 | */ |
||
22 | public function __set($field, $value); |
||
23 | |||
24 | /** |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function getValue(); |
||
28 | |||
29 | /** |
||
30 | * @param ValueObject $object |
||
31 | * @return bool |
||
32 | */ |
||
33 | public function equals(ValueObject $object); |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getType(); |
||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | public function hash(); |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | public function __destruct(); |
||
49 | } |
||
50 |
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.