Completed
Push — master ( 59ed7d...9fb967 )
by Valentyn
02:51
created

ActorContacts   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 52
ccs 0
cts 13
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getId() 0 4 1
A getActor() 0 4 1
A getProvider() 0 4 1
A getUrl() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Actors\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * @ORM\Entity
11
 * @ORM\Table(name="actors_contacts")
12
 */
13
class ActorContacts
14
{
15
    /**
16
     * @ORM\Id()
17
     * @ORM\GeneratedValue()
18
     * @ORM\Column(type="integer")
19
     */
20
    private $id;
21
22
    /**
23
     * @ORM\ManyToOne(targetEntity="App\Actors\Entity\Actor", inversedBy="contacts")
24
     * @ORM\JoinColumn(nullable=false)
25
     */
26
    private $actor;
27
28
    /**
29
     * @ORM\Column(type="string", length=30)
30
     */
31
    private $provider;
32
33
    /**
34
     * @ORM\Column(type="string", length=255)
35
     */
36
    private $url;
37
38
    public function __construct(Actor $actor, string $provider, string $url)
39
    {
40
        $this->actor = $actor;
41
        $this->provider = $provider;
42
        $this->url = $url;
43
    }
44
45
    public function getId(): int
46
    {
47
        return $this->id;
48
    }
49
50
    public function getActor(): Actor
51
    {
52
        return $this->actor;
53
    }
54
55
    public function getProvider(): string
56
    {
57
        return $this->provider;
58
    }
59
60
    public function getUrl(): string
61
    {
62
        return $this->url;
63
    }
64
}
65