<?php
namespace Roothirsch\PimBundle\Entity;
use Roothirsch\PimBundle\Repository\ChannelRepository;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Core\Annotation\ApiResource;
/**
* @ApiResource( shortName="Pim/Channel")
* @ORM\Entity(repositoryClass=ChannelRepository::class)
* @ORM\Table(name="pim_channel")
*/
class Channel
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $title;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(string $title): self
{
$this->title = $title;
return $this;
}
}