1 | <?php |
||
7 | class WeekInterval |
||
8 | { |
||
9 | /** |
||
10 | * @var DateTime $start_date |
||
11 | */ |
||
12 | private $start_date; |
||
|
|||
13 | |||
14 | /** |
||
15 | * @var DateTime $end_date |
||
16 | */ |
||
17 | private $end_date; |
||
18 | |||
19 | /** |
||
20 | * @var integer $interval |
||
21 | */ |
||
22 | private $interval; |
||
23 | |||
24 | public function __construct(DateTime $start_date, DateTime $end_date) |
||
32 | |||
33 | /** |
||
34 | * @return DateTime |
||
35 | */ |
||
36 | public function getStartDate(): DateTime |
||
40 | |||
41 | /** |
||
42 | * @return DateTime |
||
43 | */ |
||
44 | public function getEndDate(): DateTime |
||
48 | |||
49 | /** |
||
50 | * @return int |
||
51 | */ |
||
52 | public function getWorkingDays(): int |
||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getWeekNumber(): string |
||
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | public function getYearWeek(): string |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getYearMonth(): string |
||
80 | } |
||
81 |
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.