1 | <?php declare(strict_types = 1); |
||
14 | class EntityController |
||
15 | { |
||
16 | /** |
||
17 | * @return \stdClass |
||
18 | */ |
||
19 | public function getStatus() |
||
25 | |||
26 | /** |
||
27 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
28 | * @param string $type |
||
29 | * @param \DateTime $lastModified |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function find(string $type, \DateTime $lastModified) |
||
43 | |||
44 | /** |
||
45 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
46 | * @param string $type |
||
47 | * @param array $criteria |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function findByCriteria(string $type, array $criteria) |
||
65 | |||
66 | /** |
||
67 | * @param string $type |
||
68 | * @param int $id |
||
69 | * |
||
70 | * @return \stdClass |
||
71 | */ |
||
72 | public function get(string $type, int $id) |
||
80 | |||
81 | /** |
||
82 | * @param string $type |
||
83 | * @param int $id |
||
84 | * @param \stdClass $data |
||
85 | * |
||
86 | * @return \stdClass |
||
87 | */ |
||
88 | public function put(string $type, int $id, \stdClass $data) |
||
95 | |||
96 | /** |
||
97 | * @param string $type |
||
98 | * @param \stdClass $data |
||
99 | * |
||
100 | * @return \stdClass |
||
101 | */ |
||
102 | public function post(string $type, \stdClass $data) |
||
109 | |||
110 | /** |
||
111 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
112 | * @param string $type |
||
113 | * @param int $id |
||
114 | * |
||
115 | * @return null |
||
116 | */ |
||
117 | public function delete(string $type, int $id) |
||
121 | } |
||
122 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.