| Total Complexity | 8 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class DefaultValue extends AbstractModel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @ORM\Column(type="string") |
||
| 18 | */ |
||
| 19 | private $nameWithDefaultValueOnField = 'jane'; |
||
|
|
|||
| 20 | |||
| 21 | /** |
||
| 22 | * @ORM\Column(type="string") |
||
| 23 | */ |
||
| 24 | private $nameWithDefaultValueOnArgumentOverrideField = 'field'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | * |
||
| 29 | * @ORM\Column(type="string", options={"default" = Post::STATUS_PRIVATE}) |
||
| 30 | */ |
||
| 31 | private $type = Post::STATUS_PRIVATE; |
||
| 32 | |||
| 33 | public function setNameWithoutDefault(string $name): void |
||
| 34 | { |
||
| 35 | } |
||
| 36 | |||
| 37 | public function setNameWithDefaultValueOnField(string $name): void |
||
| 38 | { |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setNameWithDefaultValueOnArgument(string $name = 'john'): void |
||
| 42 | { |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setNameWithDefaultValueOnArgumentOverrideField(string $name = 'argument'): void |
||
| 46 | { |
||
| 47 | } |
||
| 48 | |||
| 49 | public function setNameWithDefaultValueOnArgumentNullable(string $name = null): void |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getNameWithoutDefault(string $name): string |
||
| 54 | { |
||
| 55 | return $name; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getNameWithDefaultValueOnArgument(string $name = 'john'): string |
||
| 59 | { |
||
| 60 | return $name; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getNameWithDefaultValueOnArgumentNullable(string $name = null): string |
||
| 66 | } |
||
| 67 | } |
||
| 68 |