src/Entity/System/FtpStatus.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\System;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass="App\Repository\System\FtpStatusRepository")
  7. *
  8. * @ORM\Table(name="ftp_status")
  9. */
  10. class FtpStatus
  11. {
  12. public const STATUS_ACTIVE = 1;
  13. public const STATUS_INACTIVE = 2;
  14. /**
  15. * @ORM\Id
  16. *
  17. * @ORM\Column(type="integer", name="id_ftp_status")
  18. */
  19. private int $id;
  20. /**
  21. * @ORM\Column(type="string")
  22. */
  23. private string $name;
  24. public function getId(): int
  25. {
  26. return $this->id;
  27. }
  28. public function setId(int $id): FtpStatus
  29. {
  30. $this->id = $id;
  31. return $this;
  32. }
  33. public function getName(): string
  34. {
  35. return $this->name;
  36. }
  37. public function setName(string $name): FtpStatus
  38. {
  39. $this->name = $name;
  40. return $this;
  41. }
  42. }