Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | interface Trackable { |
||
|
|||
15 | |||
16 | /** |
||
17 | * |
||
18 | * @param |
||
19 | * mixed the user representation |
||
20 | * @return $this |
||
21 | */ |
||
22 | public function setCreatedBy($user); |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @param |
||
27 | * mixed the user representation |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function setUpdatedBy($user); |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * @return mixed the user who created entity |
||
35 | */ |
||
36 | public function getCreatedBy(); |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * @return mixed the user who last updated entity |
||
41 | */ |
||
42 | public function getUpdatedBy(); |
||
43 | |||
44 | /** |
||
45 | * Returns createdAt value. |
||
46 | * |
||
47 | * @return \DateTime |
||
48 | */ |
||
49 | public function getCreatedAt(); |
||
50 | |||
51 | /** |
||
52 | * Returns updatedAt value. |
||
53 | * |
||
54 | * @return \DateTime |
||
55 | */ |
||
56 | public function getUpdatedAt(); |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | * @param \DateTime $createdAt |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setCreatedAt(\DateTime $createdAt); |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @param \DateTime $updatedAt |
||
68 | * @return $this |
||
69 | */ |
||
70 | public function setUpdatedAt(\DateTime $updatedAt); |
||
71 | } |
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.