vendor/ksante/ksante_bundlecore/src/Entity/Channel.php line 13

Open in your IDE?
  1. <?php
  2. namespace Ksante\CoreBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Ksante\CoreBundle\Entity\Traits\TimestampableTrait;
  5. /**
  6.  * @ORM\Table(name="ksante_channel")
  7.  * @ORM\Entity(repositoryClass="Ksante\CoreBundle\Repository\ChannelRepository")
  8.  * @ORM\HasLifecycleCallbacks()
  9.  */
  10. class Channel
  11. {
  12.     use TimestampableTrait;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(name="api_id", type="integer", nullable=false)
  21.      */
  22.     private $apiId;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=false)
  25.      */
  26.     private $code;
  27.     /**
  28.      * @ORM\Column(type="string", length=255, nullable=false)
  29.      */
  30.     private $name;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=false)
  33.      */
  34.     private $url;
  35.     /**
  36.      * @ORM\Column(name="local_name", type="string", length=255, nullable=false)
  37.      */
  38.     private $localName;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getApiId(): ?int
  44.     {
  45.         return $this->apiId;
  46.     }
  47.     public function setApiId(int $apiId): self
  48.     {
  49.         $this->apiId$apiId ;
  50.         return $this;
  51.     }
  52.     public function getCode(): ?string
  53.     {
  54.         return $this->code;
  55.     }
  56.     public function setCode(string $code): self
  57.     {
  58.         $this->code$code;
  59.         return $this;
  60.     }
  61.     public function getName(): ?string
  62.     {
  63.         return $this->name;
  64.     }
  65.     public function setName(string $name): self
  66.     {
  67.         $this->name$name;
  68.         return $this;
  69.     }
  70.     public function getUrl(): ?string
  71.     {
  72.         return $this->url;
  73.     }
  74.     public function setUrl(string $url): self
  75.     {
  76.         $this->url$url;
  77.         return $this;
  78.     }
  79.     public function getLocalName(): ?string
  80.     {
  81.         return $this->localName;
  82.     }
  83.     public function setLocalName(string $localName): self
  84.     {
  85.         $this->localName$localName;
  86.         return $this;
  87.     }
  88. }