| 1 | <?php |
||
| 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 |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getName(): string |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param string $name |
||
| 66 | */ |
||
| 67 | public function setName(string $name): void |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return Pipe[] |
||
| 74 | */ |
||
| 75 | public function getPipes(): array |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param Pipe[] $pipes |
||
| 82 | */ |
||
| 83 | public function setPipes(array $pipes): void |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return User |
||
| 90 | */ |
||
| 91 | public function getOwner(): User |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @param User $owner |
||
| 98 | */ |
||
| 99 | public function setOwner(User $owner): void |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @return \DateTime |
||
| 106 | */ |
||
| 107 | public function getCreatedAt(): \DateTime |
||
| 111 | |||
| 112 | /** |
||
| 113 | * @param \DateTime $createdAt |
||
| 114 | */ |
||
| 115 | public function setCreatedAt(\DateTime $createdAt): void |
||
| 119 | |||
| 120 | /** |
||
| 121 | * @return \DateTime |
||
| 122 | */ |
||
| 123 | public function getUpdatedAt(): \DateTime |
||
| 127 | |||
| 128 | /** |
||
| 129 | * @param \DateTime $updatedAt |
||
| 130 | */ |
||
| 131 | public function setUpdatedAt(\DateTime $updatedAt): void |
||
| 135 | } |
||
| 136 |