<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* AppVersion
*
* @ORM\Table(name="tam_app_version")
* @ORM\Entity(repositoryClass="App\Repository\AppVersionRepository")
*/
class AppVersion
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="platform", type="string", length=255, nullable=false)
*/
private $platform;
/**
* @var integer
*
* @ORM\Column(name="build", type="integer", options={"default": 0})
*/
private $build;
/**
* @var string
*
* @ORM\Column(name="label", type="string", length=255, nullable=false)
*/
private $label;
/**
* @var \DateTime
*
* @ORM\Column(name="date_version", type="datetime", nullable=true)
*/
private $dateVersion;
/**
* @var ArrayCollection
*
* @ORM\OneToMany(targetEntity="User", mappedBy="smartphoneAppVersion", cascade={"persist"}, orphanRemoval=true)
*/
private $users;
/**
* @var ArrayCollection
*
* @ORM\OneToMany(targetEntity="App\Entity\Log\LogUser", mappedBy="smartphoneAppVersion", cascade={"persist"}, orphanRemoval=true)
*/
private $connectionUserLogs;
public function __construct()
{
$this->users = new ArrayCollection();
$this->connectionUserLogs = new ArrayCollection();
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set platform
*
* @param string $platform
*
* @return AppVersion
*/
public function setPlatform($platform)
{
$this->platform = $platform;
return $this;
}
/**
* Get platform
*
* @return string
*/
public function getPlatform()
{
return $this->platform;
}
/**
* Set build
*
* @param integer $build
*
* @return AppVersion
*/
public function setBuild($build)
{
$this->build = $build;
return $this;
}
/**
* Get build
*
* @return integer
*/
public function getBuild()
{
return $this->build;
}
/**
* Set label
*
* @param string $label
*
* @return AppVersion
*/
public function setLabel($label)
{
$this->label = $label;
return $this;
}
/**
* Get label
*
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* Set dateVersion
*
* @param \DateTime $dateVersion
*
* @return User
*/
public function setDateVersion($dateVersion)
{
$this->dateVersion = $dateVersion;
return $this;
}
/**
* Get dateVersion
*
* @return \DateTime
*/
public function getDateVersion()
{
return $this->dateVersion;
}
/**
* Add user
*
* @param \App\Entity\User $user
*
* @return AppVersion
*/
public function addUser(\App\Entity\User $user)
{
$this->users[] = $user;
return $this;
}
/**
* Remove user
*
* @param \App\Entity\User $user
*/
public function removeUser(\App\Entity\User $user)
{
$this->users->removeElement($user);
}
/**
* Get users
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getUsers()
{
return $this->users;
}
/**
* Add connectionUserLog
*
* @param \App\Entity\Log\LogUser $connectionUserLogs
*
* @return AppVersion
*/
public function addConnectionUserLog(\App\Entity\Log\LogUser $connectionUserLog)
{
$this->connectionUserLogs[] = $connectionUserLog;
return $this;
}
/**
* Remove connectionUserLog
*
* @param \App\Entity\Log\LogUser $connectionUserLog
*/
public function removeConnectionUserLog(\App\Entity\Log\LogUser $connectionUserLog)
{
$this->connectionUserLogs->removeElement($connectionUserLog);
}
/**
* Get connectionUserLogs
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getConnectionUserLogs()
{
return $this->connectionUserLogs;
}
}