src/Entity/MobileAppUsersBehavior.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * MobileAppUsersBehavior
  8.  *
  9.  * @ORM\Table(name="mobile_app_users_behavior")
  10.  * @ORM\Entity(repositoryClass="App\Repository\MobileAppUsersBehaviorRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class MobileAppUsersBehavior
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="user_id", type="integer")
  27.      */
  28.     private $userId;
  29.     /**
  30.      * @var int
  31.      *
  32.      * @ORM\Column(name="event_id", type="integer")
  33.      */
  34.     private $eventId;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="operating_system", type="string", length=255, nullable=true)
  39.      */
  40.     private $operatingSystem;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="mobile_model", type="string", length=255, nullable=true)
  45.      */
  46.     private $mobileModel;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="mobile_version", type="string", length=255, nullable=true)
  51.      */
  52.     private $mobileVersion;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="action", type="string", length=255)
  57.      */
  58.     private $action;
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(name="module", type="string", length=255)
  63.      */
  64.     private $module;
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="lang", type="string", length=255, nullable=true)
  69.      */
  70.     private $lang;
  71.     /**
  72.      * @var \DateTime
  73.      *
  74.      * @ORM\Column(name="created_at", type="datetime")
  75.      */
  76.     private $createdAt;
  77.     /**
  78.      * Get id
  79.      *
  80.      * @return integer
  81.      */
  82.     public function getId()
  83.     {
  84.         return $this->id;
  85.     }
  86.     /**
  87.      * Set userId
  88.      *
  89.      * @param integer $userId
  90.      *
  91.      * @return MobileAppUsersBehavior
  92.      */
  93.     public function setUserId($userId)
  94.     {
  95.         $this->userId $userId;
  96.     
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get userId
  101.      *
  102.      * @return integer
  103.      */
  104.     public function getUserId()
  105.     {
  106.         return $this->userId;
  107.     }
  108.     /**
  109.      * Set eventId
  110.      *
  111.      * @param integer $eventId
  112.      *
  113.      * @return MobileAppUsersBehavior
  114.      */
  115.     public function setEventId($eventId)
  116.     {
  117.         $this->eventId $eventId;
  118.     
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get eventId
  123.      *
  124.      * @return integer
  125.      */
  126.     public function getEventId()
  127.     {
  128.         return $this->eventId;
  129.     }
  130.     /**
  131.      * Set operatingSystem
  132.      *
  133.      * @param string $operatingSystem
  134.      *
  135.      * @return MobileAppUsersBehavior
  136.      */
  137.     public function setOperatingSystem($operatingSystem)
  138.     {
  139.         $this->operatingSystem $operatingSystem;
  140.     
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get operatingSystem
  145.      *
  146.      * @return string
  147.      */
  148.     public function getOperatingSystem()
  149.     {
  150.         return $this->operatingSystem;
  151.     }
  152.     /**
  153.      * Set mobileModel
  154.      *
  155.      * @param string $mobileModel
  156.      *
  157.      * @return MobileAppUsersBehavior
  158.      */
  159.     public function setMobileModel($mobileModel)
  160.     {
  161.         $this->mobileModel $mobileModel;
  162.     
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get mobileModel
  167.      *
  168.      * @return string
  169.      */
  170.     public function getMobileModel()
  171.     {
  172.         return $this->mobileModel;
  173.     }
  174.     /**
  175.      * Set mobileVersion
  176.      *
  177.      * @param string $mobileVersion
  178.      *
  179.      * @return MobileAppUsersBehavior
  180.      */
  181.     public function setMobileVersion($mobileVersion)
  182.     {
  183.         $this->mobileVersion $mobileVersion;
  184.     
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get mobileVersion
  189.      *
  190.      * @return string
  191.      */
  192.     public function getMobileVersion()
  193.     {
  194.         return $this->mobileVersion;
  195.     }
  196.     /**
  197.      * Set action
  198.      *
  199.      * @param string $action
  200.      *
  201.      * @return MobileAppUsersBehavior
  202.      */
  203.     public function setAction($action)
  204.     {
  205.         $this->action $action;
  206.     
  207.         return $this;
  208.     }
  209.     /**
  210.      * Get action
  211.      *
  212.      * @return string
  213.      */
  214.     public function getAction()
  215.     {
  216.         return $this->action;
  217.     }
  218.     /**
  219.      * Set module
  220.      *
  221.      * @param string $module
  222.      *
  223.      * @return MobileAppUsersBehavior
  224.      */
  225.     public function setModule($module)
  226.     {
  227.         $this->module $module;
  228.     
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get module
  233.      *
  234.      * @return string
  235.      */
  236.     public function getModule()
  237.     {
  238.         return $this->module;
  239.     }
  240.     /**
  241.      * Set createdAt
  242.      *
  243.      * @param \DateTime $createdAt
  244.      *
  245.      * @return MobileAppUsersBehavior
  246.      */
  247.     public function setCreatedAt(\Datetime $createdAt)
  248.     {
  249.         $this->createdAt $createdAt;
  250.     
  251.         return $this;
  252.     }
  253.     /**
  254.      * Get createdAt
  255.      *
  256.      * @return \DateTime
  257.      */
  258.     public function getCreatedAt()
  259.     {
  260.         return $this->createdAt;
  261.     }
  262.     /**
  263.      * @ORM\PrePersist
  264.      */
  265.     public function setCreatedAtValue()
  266.     {
  267.         $this->createdAt = new \Datetime();
  268.     }
  269.     /**
  270.      * Set lang
  271.      *
  272.      * @param string $lang
  273.      *
  274.      * @return MobileAppUsersBehavior
  275.      */
  276.     public function setLang($lang)
  277.     {
  278.         $this->lang $lang;
  279.     
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get lang
  284.      *
  285.      * @return string
  286.      */
  287.     public function getLang()
  288.     {
  289.         return $this->lang;
  290.     }
  291. }