RadioStation::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Uxmp\Core\Orm\Model;
6
7
use Doctrine\DBAL\Types\Types;
8
use Doctrine\ORM\Mapping as ORM;
9
use Uxmp\Core\Orm\Repository\RadioStationRepository;
10
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
42
    {
43 1
        return $this->url;
44
    }
45
46 1
    public function setUrl(string $url): static
47
    {
48 1
        $this->url = $url;
49 1
        return $this;
50
    }
51
}
52