Total Complexity | 8 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | #[ORM\Entity] |
||
11 | final class DefaultValue extends AbstractModel |
||
12 | { |
||
13 | #[ORM\Column(type: 'string')] |
||
14 | private string $nameWithDefaultValueOnField = 'jane'; |
||
15 | |||
16 | #[ORM\Column(type: 'string')] |
||
17 | private string $nameWithDefaultValueOnArgumentOverrideField = 'field'; |
||
18 | |||
19 | public function setNameWithoutDefault(string $name): void |
||
|
|||
20 | { |
||
21 | } |
||
22 | |||
23 | public function setNameWithDefaultValueOnField(string $name): void |
||
24 | { |
||
25 | $this->nameWithDefaultValueOnField = $name; |
||
26 | } |
||
27 | |||
28 | public function setNameWithDefaultValueOnArgument(string $name = 'john'): void |
||
29 | { |
||
30 | } |
||
31 | |||
32 | public function setNameWithDefaultValueOnArgumentOverrideField(string $name = 'argument'): void |
||
33 | { |
||
34 | $this->nameWithDefaultValueOnArgumentOverrideField = $name; |
||
35 | } |
||
36 | |||
37 | public function setNameWithDefaultValueOnArgumentNullable(?string $name = null): void |
||
38 | { |
||
39 | } |
||
40 | |||
41 | public function getNameWithoutDefault(string $name): string |
||
42 | { |
||
43 | return $name; |
||
44 | } |
||
45 | |||
46 | public function getNameWithDefaultValueOnArgument(string $name = 'john'): string |
||
49 | } |
||
50 | |||
51 | public function getNameWithDefaultValueOnArgumentNullable(?string $name = null): string |
||
54 | } |
||
55 | } |
||
56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.