| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Poll extends PollModel |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @ORM\Id |
||
| 17 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | */ |
||
| 20 | protected $id; |
||
| 21 | /** |
||
| 22 | * @ORM\ManyToOne(targetEntity="Project") |
||
| 23 | * @ORM\JoinColumn(onDelete="CASCADE") |
||
| 24 | */ |
||
| 25 | protected $project; |
||
| 26 | /** |
||
| 27 | * @ORM\OneToOne(targetEntity="Details") |
||
| 28 | */ |
||
| 29 | protected $details; |
||
| 30 | /** |
||
| 31 | * @ORM\Column(type="boolean") |
||
| 32 | */ |
||
| 33 | protected $isEnded; |
||
| 34 | /** |
||
| 35 | * @ORM\Column(type="datetime") |
||
| 36 | */ |
||
| 37 | protected $createdAt; |
||
| 38 | /** |
||
| 39 | * @ORM\Column(type="datetime") |
||
| 40 | */ |
||
| 41 | protected $endedAt; |
||
| 42 | |||
| 43 | public function setId(int $id): Poll |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getId(): int |
||
| 53 | } |
||
| 54 | } |