| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 83.33% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | #[ORM\Entity(repositoryClass: RadioStationRepository::class)] |
||
| 12 | #[ORM\Table(name: 'radiostation')] |
||
| 13 | class RadioStation implements RadioStationInterface |
||
| 14 | { |
||
| 15 | #[ORM\Column(type: Types::INTEGER)] |
||
| 16 | #[ORM\Id, ORM\GeneratedValue(strategy: 'AUTO')] |
||
| 17 | private int $id; |
||
| 18 | |||
| 19 | #[ORM\Column(type: Types::STRING)] |
||
| 20 | private string $name = ''; |
||
| 21 | |||
| 22 | #[ORM\Column(type: Types::STRING)] |
||
| 23 | private string $url = ''; |
||
| 24 | |||
| 25 | public function getId(): int |
||
| 26 | { |
||
| 27 | return $this->id; |
||
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getName(): string |
|
| 31 | { |
||
| 32 | 1 | return $this->name; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function setName(string $name): static |
|
| 36 | { |
||
| 37 | 1 | $this->name = $name; |
|
| 38 | 1 | return $this; |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function getUrl(): string |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function setUrl(string $url): static |
|
| 50 | } |
||
| 51 | } |
||
| 52 |