<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Description of SubLicense
* @ORM\Table(name="sub_license")
* @ORM\Entity(repositoryClass="App\Repository\SubLicenseRepository")
*/
class SubLicense {
/**
* @var integer
* @ORM\Column(name="sl_is", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $stId;
/**
* @var string
* @ORM\Column(name="sl_name", type="string", length=50, nullable=false, unique=true)
*/
private $channelName;
/**
* @var \App\Entity\AccountLicense
* @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="sl_license", referencedColumnName="al_id", nullable=false, onDelete="CASCADE")
* })
*/
private $license;
/**
* @var string
* @ORM\Column(name="sl_device_uid", type="string", length=24, nullable=true, unique=true)
*/
private $deviceUid;
/**
* @var string
* @ORM\Column(name="sl_android_vname", type="string", length=8, nullable=true)
*/
private $androidVersionName;
/**
* @var string
* @ORM\Column(name="sl_pushy_key", type="string", length=28, nullable=true, unique=true)
*/
private $pushyKey;
/**
* @var string
* @ORM\Column(name="sl_real_name", type="string", length=45, nullable=true)
*/
private $name;
/**
* @var string
* @ORM\Column(name="al_android_ip", type="string", length=16, nullable=true)
*/
private $androidIP;
/**
* @var integer
* @ORM\Column(name="al_times_checked_ip", type="integer", length=4, nullable=true, options={"default":"0"})
*/
private $timesCheckedIP;
/**
* @return type
*/
public function getId() {
return $this->stId;
}
/**
* @return type
*/
public function getChannelName() {
return $this->channelName;
}
/**
* @return type
*/
public function getLicense() {
return $this->license;
}
/**
* @param type $stId
*/
public function setStId($stId) {
$this->stId = $stId;
}
/**
* @param type $channelName
*/
public function setChannelName($channelName) {
$this->channelName = $channelName;
}
/**
* @param \App\Entity\AccountLicense $license
*/
public function setLicense(\App\Entity\AccountLicense $license) {
$this->license = $license;
}
/**
* @return type
*/
public function getDeviceUid() {
return $this->deviceUid;
}
/**
* @param type $deviceUid
*/
public function setDeviceUid($deviceUid) {
$this->deviceUid = $deviceUid;
}
/**
* @return type
*/
public function getAndroidVersionName() {
return $this->androidVersionName;
}
/**
* @param type $androidVersionName
*/
public function setAndroidVersionName($androidVersionName) {
$this->androidVersionName = $androidVersionName;
}
/**
* @return type
*/
public function getPushyKey() {
return $this->pushyKey;
}
/**
* @param type $pushyKey
*/
public function setPushyKey($pushyKey) {
$this->pushyKey = $pushyKey;
}
/**
* @return type
*/
public function getName() {
return $this->name;
}
/**
* @param type $name
*/
public function setName($name) {
$this->name = $name;
}
/**
* @return type
*/
public function getAndroidIP() {
return $this->androidIP;
}
/**
* @return type
*/
public function getTimesCheckedIP() {
return $this->timesCheckedIP;
}
/**
* @param type $androidIP
*/
public function setAndroidIP($androidIP) {
$this->androidIP = $androidIP;
}
/**
* @param type $timesCheckedIP
*/
public function setTimesCheckedIP($timesCheckedIP) {
$this->timesCheckedIP = $timesCheckedIP;
}
}