src/Entity/SubLicense.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Description of SubLicense
  6.  * @ORM\Table(name="sub_license")
  7.  * @ORM\Entity(repositoryClass="App\Repository\SubLicenseRepository")
  8.  */
  9. class SubLicense {
  10.     /**
  11.      * @var integer
  12.      * @ORM\Column(name="sl_is", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="IDENTITY")
  15.      */
  16.     private $stId;
  17.     /**
  18.      * @var string
  19.      * @ORM\Column(name="sl_name", type="string", length=50, nullable=false, unique=true)
  20.      */
  21.     private $channelName;
  22.     /**
  23.      * @var \App\Entity\AccountLicense
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
  25.      * @ORM\JoinColumns({
  26.      *   @ORM\JoinColumn(name="sl_license", referencedColumnName="al_id", nullable=false, onDelete="CASCADE")
  27.      * })
  28.      */
  29.     private $license;
  30.     /**
  31.      * @var string
  32.      * @ORM\Column(name="sl_device_uid", type="string", length=24, nullable=true, unique=true)
  33.      */
  34.     private $deviceUid;
  35.     /**
  36.      * @var string
  37.      * @ORM\Column(name="sl_android_vname", type="string", length=8, nullable=true)
  38.      */
  39.     private $androidVersionName;
  40.     /**
  41.      * @var string
  42.      * @ORM\Column(name="sl_pushy_key", type="string", length=28, nullable=true, unique=true)
  43.      */
  44.     private $pushyKey;
  45.     /**
  46.      * @var string
  47.      * @ORM\Column(name="sl_real_name", type="string", length=45, nullable=true)
  48.      */
  49.     private $name;
  50.     /**
  51.      * @var string
  52.      * @ORM\Column(name="al_android_ip", type="string", length=16, nullable=true)
  53.      */
  54.     private $androidIP;
  55.     /**
  56.      * @var integer
  57.      * @ORM\Column(name="al_times_checked_ip", type="integer", length=4, nullable=true, options={"default":"0"})
  58.      */
  59.     private $timesCheckedIP;
  60.     /**
  61.      * @return type
  62.      */
  63.     public function getId() {
  64.         return $this->stId;
  65.     }
  66.     /**
  67.      * @return type
  68.      */
  69.     public function getChannelName() {
  70.         return $this->channelName;
  71.     }
  72.     /**
  73.      * @return type
  74.      */
  75.     public function getLicense() {
  76.         return $this->license;
  77.     }
  78.     /**
  79.      * @param type $stId
  80.      */
  81.     public function setStId($stId) {
  82.         $this->stId $stId;
  83.     }
  84.     /**
  85.      * @param type $channelName
  86.      */
  87.     public function setChannelName($channelName) {
  88.         $this->channelName $channelName;
  89.     }
  90.     /**
  91.      * @param \App\Entity\AccountLicense $license
  92.      */
  93.     public function setLicense(\App\Entity\AccountLicense $license) {
  94.         $this->license $license;
  95.     }
  96.     /**
  97.      * @return type
  98.      */
  99.     public function getDeviceUid() {
  100.         return $this->deviceUid;
  101.     }
  102.     /**
  103.      * @param type $deviceUid
  104.      */
  105.     public function setDeviceUid($deviceUid) {
  106.         $this->deviceUid $deviceUid;
  107.     }
  108.     /**
  109.      * @return type
  110.      */
  111.     public function getAndroidVersionName() {
  112.         return $this->androidVersionName;
  113.     }
  114.     /**
  115.      * @param type $androidVersionName
  116.      */
  117.     public function setAndroidVersionName($androidVersionName) {
  118.         $this->androidVersionName $androidVersionName;
  119.     }
  120.     /**
  121.      * @return type
  122.      */
  123.     public function getPushyKey() {
  124.         return $this->pushyKey;
  125.     }
  126.     /**
  127.      * @param type $pushyKey
  128.      */
  129.     public function setPushyKey($pushyKey) {
  130.         $this->pushyKey $pushyKey;
  131.     }
  132.     /**
  133.      * @return type
  134.      */
  135.     public function getName() {
  136.         return $this->name;
  137.     }
  138.     /**
  139.      * @param type $name
  140.      */
  141.     public function setName($name) {
  142.         $this->name $name;
  143.     }
  144.     /**
  145.      * @return type
  146.      */
  147.     public function getAndroidIP() {
  148.         return $this->androidIP;
  149.     }
  150.     /**
  151.      * @return type
  152.      */
  153.     public function getTimesCheckedIP() {
  154.         return $this->timesCheckedIP;
  155.     }
  156.     /**
  157.      * @param type $androidIP
  158.      */
  159.     public function setAndroidIP($androidIP) {
  160.         $this->androidIP $androidIP;
  161.     }
  162.     /**
  163.      * @param type $timesCheckedIP
  164.      */
  165.     public function setTimesCheckedIP($timesCheckedIP) {
  166.         $this->timesCheckedIP $timesCheckedIP;
  167.     }
  168. }