summaryrefslogtreecommitdiff
path: root/src/Model/Vote.php
blob: 273a7d85cd13283846241aa539b31fb626bd810c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php

namespace Elements\Model;

use Doctrine\DBAL\Schema\Column;
use Doctrine\DBAL\Schema\Table;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\ManyToOne;

class Vote
{
  #[Id]
  #[Column(type: 'integer')]
  #[GeneratedValue]
  /**
   * @Id
   * @Column(type="integer")
   * @GeneratedValue
   */
  public int $id;

  #[Column(type: 'integer')]
  /**
   * @Column(type="integer")
   */
  public int $value;

  /**
   * Vote constructor.
   */
  public function __contruct(int $value)
  {
    $this->value = $value;
  }
}