src/Entity/AppVersion.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. /**
  6.  * AppVersion
  7.  *
  8.  * @ORM\Table(name="tam_app_version")
  9.  * @ORM\Entity(repositoryClass="App\Repository\AppVersionRepository")
  10.  */
  11. class AppVersion
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="platform", type="string", length=255, nullable=false)
  26.      */
  27.     private $platform;
  28.     
  29.     /**
  30.      * @var integer
  31.      *
  32.      * @ORM\Column(name="build", type="integer", options={"default": 0})
  33.      */
  34.     private $build;
  35.     
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="label", type="string", length=255, nullable=false)
  40.      */
  41.     private $label;
  42.     
  43.     /**
  44.      * @var \DateTime
  45.      *
  46.      * @ORM\Column(name="date_version", type="datetime", nullable=true)
  47.      */
  48.     private $dateVersion;
  49.     
  50.     /**
  51.      * @var ArrayCollection
  52.      *
  53.      * @ORM\OneToMany(targetEntity="User", mappedBy="smartphoneAppVersion", cascade={"persist"}, orphanRemoval=true)
  54.      */
  55.     private $users;
  56.     
  57.     /**
  58.      * @var ArrayCollection
  59.      *
  60.      * @ORM\OneToMany(targetEntity="App\Entity\Log\LogUser", mappedBy="smartphoneAppVersion", cascade={"persist"}, orphanRemoval=true)
  61.      */
  62.     private $connectionUserLogs;
  63.     
  64.     public function __construct()
  65.     {
  66.         $this->users = new ArrayCollection();
  67.         $this->connectionUserLogs = new ArrayCollection();
  68.     }
  69.     
  70.     /**
  71.      * Get id
  72.      *
  73.      * @return int
  74.      */
  75.     public function getId()
  76.     {
  77.         return $this->id;
  78.     }
  79.     
  80.     /**
  81.      * Set platform
  82.      *
  83.      * @param string $platform
  84.      *
  85.      * @return AppVersion
  86.      */
  87.     public function setPlatform($platform)
  88.     {
  89.         $this->platform $platform;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get platform
  94.      *
  95.      * @return string
  96.      */
  97.     public function getPlatform()
  98.     {
  99.         return $this->platform;
  100.     }
  101.     
  102.     /**
  103.      * Set build
  104.      *
  105.      * @param integer $build
  106.      *
  107.      * @return AppVersion
  108.      */
  109.     public function setBuild($build)
  110.     {
  111.         $this->build $build;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get build
  116.      *
  117.      * @return integer
  118.      */
  119.     public function getBuild()
  120.     {
  121.         return $this->build;
  122.     }
  123.     
  124.     /**
  125.      * Set label
  126.      *
  127.      * @param string $label
  128.      *
  129.      * @return AppVersion
  130.      */
  131.     public function setLabel($label)
  132.     {
  133.         $this->label $label;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get label
  138.      *
  139.      * @return string
  140.      */
  141.     public function getLabel()
  142.     {
  143.         return $this->label;
  144.     }
  145.     
  146.     /**
  147.      * Set dateVersion
  148.      *
  149.      * @param \DateTime $dateVersion
  150.      *
  151.      * @return User
  152.      */
  153.     public function setDateVersion($dateVersion)
  154.     {
  155.         $this->dateVersion $dateVersion;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get dateVersion
  160.      *
  161.      * @return \DateTime
  162.      */
  163.     public function getDateVersion()
  164.     {
  165.         return $this->dateVersion;
  166.     }
  167.     
  168.     
  169.     /**
  170.      * Add user
  171.      *
  172.      * @param \App\Entity\User $user
  173.      *
  174.      * @return AppVersion
  175.      */
  176.     public function addUser(\App\Entity\User $user)
  177.     {
  178.         $this->users[] = $user;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Remove user
  183.      *
  184.      * @param \App\Entity\User $user
  185.      */
  186.     public function removeUser(\App\Entity\User $user)
  187.     {
  188.         $this->users->removeElement($user);
  189.     }
  190.     /**
  191.      * Get users
  192.      *
  193.      * @return \Doctrine\Common\Collections\Collection
  194.      */
  195.     public function getUsers()
  196.     {
  197.         return $this->users;
  198.     }
  199.     
  200.     /**
  201.      * Add connectionUserLog
  202.      *
  203.      * @param \App\Entity\Log\LogUser $connectionUserLogs
  204.      *
  205.      * @return AppVersion
  206.      */
  207.     public function addConnectionUserLog(\App\Entity\Log\LogUser $connectionUserLog)
  208.     {
  209.         $this->connectionUserLogs[] = $connectionUserLog;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Remove connectionUserLog
  214.      *
  215.      * @param \App\Entity\Log\LogUser $connectionUserLog
  216.      */
  217.     public function removeConnectionUserLog(\App\Entity\Log\LogUser $connectionUserLog)
  218.     {
  219.         $this->connectionUserLogs->removeElement($connectionUserLog);
  220.     }
  221.     /**
  222.      * Get connectionUserLogs
  223.      *
  224.      * @return \Doctrine\Common\Collections\Collection
  225.      */
  226.     public function getConnectionUserLogs()
  227.     {
  228.         return $this->connectionUserLogs;
  229.     }
  230.     
  231.     
  232.     
  233.     
  234. }