src/App/Entity/EconomicSector.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(
  8. * name="economic_sectors"
  9. * )
  10. */
  11. class EconomicSector
  12. {
  13. public const ECONOMIC_SECTOR_TRADE = 1;
  14. public const ECONOMIC_SECTOR_CRAFT = 2;
  15. public const ECONOMIC_SECTOR_SERVICES = 3;
  16. public const ECONOMIC_SECTOR_PRODUCTION = 4;
  17. public const ECONOMIC_SECTOR_AUTOMOTIVE = 5;
  18. public const ECONOMIC_SECTOR_HEALTH = 6;
  19. public const ECONOMIC_SECTOR_CONSTRUCTION = 7;
  20. public const ECONOMIC_SECTOR_LOGISTICS = 8;
  21. public const ECONOMIC_SECTOR_GASTRONOMY = 9;
  22. public const ECONOMIC_SECTOR_IT = 10;
  23. public const ECONOMIC_SECTOR_REAL_ESTATE = 11;
  24. public const ECONOMIC_SECTOR_ENERGY = 12;
  25. public const ECONOMIC_SECTOR_BEAUTY = 13;
  26. public const ECONOMIC_SECTOR_OTHER = 14;
  27. /**
  28. * @var int
  29. *
  30. * @ORM\Column(type="integer")
  31. *
  32. * @ORM\Id
  33. */
  34. protected $id;
  35. public function setId(int $id)
  36. {
  37. $this->id = $id;
  38. return $this;
  39. }
  40. public function getId(): int
  41. {
  42. return $this->id;
  43. }
  44. /**
  45. * @var string
  46. *
  47. * @ORM\Column(name="title", type="string", length=1024, nullable=false)
  48. */
  49. protected $title;
  50. public function setTitle(string $title)
  51. {
  52. $this->title = $title;
  53. return $this;
  54. }
  55. public function getTitle(): string
  56. {
  57. return $this->title;
  58. }
  59. public function __toString(): string
  60. {
  61. return (string)$this->getTitle();
  62. }
  63. }