src/App/Entity/ContentDistribution/AgenturFuerArbeit/DestatisEconomicSector.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity\ContentDistribution\AgenturFuerArbeit;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. *
  7. * @ORM\Table(
  8. * name="destatis_economic_sectors",
  9. * indexes={
  10. *
  11. * @ORM\Index(name="name_idx", columns={"name"})
  12. * }
  13. * )
  14. */
  15. class DestatisEconomicSector
  16. {
  17. public function __construct(
  18. int $runningNumber,
  19. string $code,
  20. string $name,
  21. ?string $isicRev4
  22. ) {
  23. $this->runningNumber = $runningNumber;
  24. $this->code = $code;
  25. $this->name = $name;
  26. $this->isicRev4 = $isicRev4;
  27. }
  28. /**
  29. * @ORM\Column(type="smallint", nullable=false, options={"unsigned": true})
  30. *
  31. * @ORM\Id
  32. */
  33. private int $runningNumber;
  34. public function getRunningNumber(): int
  35. {
  36. return $this->runningNumber;
  37. }
  38. /**
  39. * @ORM\Column(type="string", nullable=false, length=8, unique=true)
  40. */
  41. private string $code;
  42. public function getCode(): string
  43. {
  44. return $this->code;
  45. }
  46. /**
  47. * @ORM\Column(type="string", nullable=false, length=256)
  48. */
  49. private string $name;
  50. public function getName(): string
  51. {
  52. return $this->name;
  53. }
  54. /**
  55. * @ORM\Column(type="string", nullable=true, length=6)
  56. */
  57. private ?string $isicRev4;
  58. public function getIsicRev4(): ?string
  59. {
  60. return $this->isicRev4;
  61. }
  62. }