Pipeline   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 123
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 11
lcom 0
cbo 0
dl 0
loc 123
ccs 0
cts 44
cp 0
rs 10
c 0
b 0
f 0

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getPipes() 0 4 1
A setPipes() 0 4 1
A getOwner() 0 4 1
A setOwner() 0 4 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SlayerBirden\DataFlowServer\Pipeline\Entities;
5
6
use Doctrine\ORM\Mapping as ORM;
7
use SlayerBirden\DataFlowServer\Domain\Entities\User;
8
9
/**
10
 * @ORM\Entity
11
 * @ORM\Table(name="pipeline")
12
 **/
13
class Pipeline
14
{
15
    /**
16
     * @ORM\Id
17
     * @ORM\GeneratedValue(strategy="AUTO")
18
     * @ORM\Column(type="integer")
19
     * @var integer
20
     */
21
    private $id;
22
    /**
23
     * @var string
24
     * @ORM\Column(type="string")
25
     */
26
    private $name;
27
    /**
28
     * @var Pipe[]
29
     * @ORM\ManyToMany(targetEntity="\SlayerBirden\DataFlowServer\Pipeline\Entities\Pipe")
30
     */
31
    private $pipes;
32
    /**
33
     * @var User
34
     * @ORM\ManyToOne(targetEntity="\SlayerBirden\DataFlowServer\Domain\Entities\User")
35
     */
36
    private $owner;
37
    /**
38
     * @var \DateTime
39
     * @ORM\Column(type="datetime")
40
     */
41
    private $createdAt;
42
    /**
43
     * @var \DateTime
44
     * @ORM\Column(type="datetime")
45
     */
46
    private $updatedAt;
47
48
    /**
49
     * @return int
50
     */
51
    public function getId(): int
52
    {
53
        return $this->id;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getName(): string
60
    {
61
        return $this->name;
62
    }
63
64
    /**
65
     * @param string $name
66
     */
67
    public function setName(string $name): void
68
    {
69
        $this->name = $name;
70
    }
71
72
    /**
73
     * @return Pipe[]
74
     */
75
    public function getPipes(): array
76
    {
77
        return $this->pipes;
78
    }
79
80
    /**
81
     * @param Pipe[] $pipes
82
     */
83
    public function setPipes(array $pipes): void
84
    {
85
        $this->pipes = $pipes;
86
    }
87
88
    /**
89
     * @return User
90
     */
91
    public function getOwner(): User
92
    {
93
        return $this->owner;
94
    }
95
96
    /**
97
     * @param User $owner
98
     */
99
    public function setOwner(User $owner): void
100
    {
101
        $this->owner = $owner;
102
    }
103
104
    /**
105
     * @return \DateTime
106
     */
107
    public function getCreatedAt(): \DateTime
108
    {
109
        return $this->createdAt;
110
    }
111
112
    /**
113
     * @param \DateTime $createdAt
114
     */
115
    public function setCreatedAt(\DateTime $createdAt): void
116
    {
117
        $this->createdAt = $createdAt;
118
    }
119
120
    /**
121
     * @return \DateTime
122
     */
123
    public function getUpdatedAt(): \DateTime
124
    {
125
        return $this->updatedAt;
126
    }
127
128
    /**
129
     * @param \DateTime $updatedAt
130
     */
131
    public function setUpdatedAt(\DateTime $updatedAt): void
132
    {
133
        $this->updatedAt = $updatedAt;
134
    }
135
}
136