PartnerSite   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 20
dl 0
loc 44
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getBanner() 0 3 1
A getText() 0 3 1
A getId() 0 3 1
A getUrl() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Orm\Entity;
6
7
use Doctrine\ORM\Mapping\Column;
8
use Doctrine\ORM\Mapping\Entity;
9
use Doctrine\ORM\Mapping\GeneratedValue;
10
use Doctrine\ORM\Mapping\Id;
11
use Doctrine\ORM\Mapping\Table;
12
use Stu\Orm\Repository\PartnerSiteRepository;
13
14
#[Table(name: 'stu_partnersite')]
15
#[Entity(repositoryClass: PartnerSiteRepository::class)]
16
class PartnerSite
17
{
18
    #[Id]
19
    #[Column(type: 'integer')]
20
    #[GeneratedValue(strategy: 'IDENTITY')]
21
    private int $id;
22
23
    #[Column(type: 'string')]
24
    private string $name = '';
25
26
    #[Column(type: 'string')]
27
    private string $url = '';
28
29
    #[Column(type: 'text')]
30
    private string $text = '';
31
32
    #[Column(type: 'string', length: 200)]
33
    private string $banner = '';
34
35
    public function getId(): int
36
    {
37
        return $this->id;
38
    }
39
40
    public function getName(): string
41
    {
42
        return $this->name;
43
    }
44
45
    public function getUrl(): string
46
    {
47
        return $this->url;
48
    }
49
50
    public function getText(): string
51
    {
52
        return $this->text;
53
    }
54
55
    public function getBanner(): string
56
    {
57
        return $this->banner;
58
    }
59
}
60