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

ActorContacts::getActor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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