vendor/roothirsch/pim-bundle/Entity/Channel.php line 14

Open in your IDE?
  1. <?php
  2. namespace Roothirsch\PimBundle\Entity;
  3. use Roothirsch\PimBundle\Repository\ChannelRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use ApiPlatform\Core\Annotation\ApiResource;
  6. /**
  7. * @ApiResource( shortName="Pim/Channel")
  8. * @ORM\Entity(repositoryClass=ChannelRepository::class)
  9. * @ORM\Table(name="pim_channel")
  10. */
  11. class Channel
  12. {
  13. /**
  14. * @ORM\Id
  15. * @ORM\GeneratedValue
  16. * @ORM\Column(type="integer")
  17. */
  18. private $id;
  19. /**
  20. * @ORM\Column(type="string", length=255)
  21. */
  22. private $title;
  23. public function getId(): ?int
  24. {
  25. return $this->id;
  26. }
  27. public function getTitle(): ?string
  28. {
  29. return $this->title;
  30. }
  31. public function setTitle(string $title): self
  32. {
  33. $this->title = $title;
  34. return $this;
  35. }
  36. }