1 | <?php |
||
13 | class Pipe |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\Id |
||
17 | * @ORM\Column(type="integer") |
||
18 | * @ORM\GeneratedValue |
||
19 | * @var integer |
||
20 | **/ |
||
21 | private $id; |
||
22 | /** |
||
23 | * @ORM\Column(type="string") |
||
24 | * @var string |
||
25 | */ |
||
26 | private $name; |
||
27 | /** |
||
28 | * @ORM\ManyToOne(targetEntity="\SlayerBirden\DataFlowServer\Domain\Entities\User") |
||
29 | * @ORM\JoinColumn(nullable=false) |
||
30 | * @var User |
||
31 | */ |
||
32 | private $owner; |
||
33 | /** |
||
34 | * @ORM\ManyToOne(targetEnti="\SlayerBirden\DataFlowServer\Pipeline\Entities\Type") |
||
35 | * @ORM\JoinColumn(nullable=false) |
||
36 | * @var Type |
||
37 | */ |
||
38 | private $type; |
||
39 | /** |
||
40 | * @ORM\Column(type="datetime") |
||
41 | * @var \DateTime |
||
42 | */ |
||
43 | private $createdAt; |
||
44 | /** |
||
45 | * @ORM\Column(type="datetime") |
||
46 | * @var \DateTime |
||
47 | */ |
||
48 | private $updatedAt; |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | public function getId(): int |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getName(): string |
||
65 | |||
66 | /** |
||
67 | * @param string $name |
||
68 | */ |
||
69 | public function setName(string $name): void |
||
73 | |||
74 | /** |
||
75 | * @return User |
||
76 | */ |
||
77 | public function getOwner(): User |
||
81 | |||
82 | /** |
||
83 | * @param User $owner |
||
84 | */ |
||
85 | public function setOwner(User $owner): void |
||
89 | |||
90 | /** |
||
91 | * @return Type |
||
92 | */ |
||
93 | public function getType(): Type |
||
97 | |||
98 | /** |
||
99 | * @param Type $type |
||
100 | */ |
||
101 | public function setType(Type $type): void |
||
105 | |||
106 | /** |
||
107 | * @return \DateTime |
||
108 | */ |
||
109 | public function getCreatedAt(): \DateTime |
||
113 | |||
114 | /** |
||
115 | * @param \DateTime $createdAt |
||
116 | */ |
||
117 | public function setCreatedAt(\DateTime $createdAt): void |
||
121 | |||
122 | /** |
||
123 | * @return \DateTime |
||
124 | */ |
||
125 | public function getUpdatedAt(): \DateTime |
||
129 | |||
130 | /** |
||
131 | * @param \DateTime $updatedAt |
||
132 | */ |
||
133 | public function setUpdatedAt(\DateTime $updatedAt): void |
||
137 | } |
||
138 |