src/Entity/System/LockStatus.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\Table
  7. *
  8. * @ORM\Entity(repositoryClass="App\Repository\System\LockStatusRepository")
  9. */
  10. class LockStatus
  11. {
  12. public const STATUS_NO_TRANSFER = 0;
  13. public const STATUS_AWAITING = 1;
  14. public const STATUS_IN_PROCESS = 2;
  15. public const STATUS_CANCELLED = 3;
  16. public const STATUS_EXPIRED = 4;
  17. public const STATUS_REJECTED = 5;
  18. public const STATUS_FINISHED = 6;
  19. /**
  20. * @var int
  21. *
  22. * @ORM\Id
  23. *
  24. * @ORM\Column(type="integer")
  25. */
  26. private $id;
  27. /**
  28. * @ORM\Column(name="name", type="string")
  29. */
  30. private string $name;
  31. public function getId(): int
  32. {
  33. return $this->id;
  34. }
  35. public function setId(int $id): self
  36. {
  37. $this->id = $id;
  38. return $this;
  39. }
  40. public function getName(): string
  41. {
  42. return $this->name;
  43. }
  44. public function setName(string $name): LockStatus
  45. {
  46. $this->name = $name;
  47. return $this;
  48. }
  49. }