| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Vote extends VoteModel |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 19 | * @ORM\Column(type="integer") |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | /** |
||
| 23 | * @ORM\ManyToOne(targetEntity="Poll") |
||
| 24 | */ |
||
| 25 | protected $poll; |
||
| 26 | /** |
||
| 27 | * @ORM\ManyToOne(targetEntity="App\Entity\User\User") |
||
| 28 | */ |
||
| 29 | protected $user; |
||
| 30 | /** |
||
| 31 | * @ORM\Column(type="string") |
||
| 32 | */ |
||
| 33 | protected $option; |
||
| 34 | /** |
||
| 35 | * @ORM\Column(type="boolean") |
||
| 36 | */ |
||
| 37 | protected $isPositive; |
||
| 38 | /** |
||
| 39 | * @ORM\Column(type="datetime") |
||
| 40 | */ |
||
| 41 | protected $createdAt; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @ORM\PrePersist() |
||
| 45 | */ |
||
| 46 | public function prePersist() |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setId(int $id): Vote |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getId(): int |
||
| 61 | } |
||
| 62 | } |