vendor/roothirsch/core-bundle/FeatureFlag/Entity/FeatureFlag.php line 12

Open in your IDE?
  1. <?php
  2. namespace Roothirsch\CoreBundle\FeatureFlag\Entity;
  3. use Roothirsch\CoreBundle\FeatureFlag\Repository\FeatureFlagRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=FeatureFlagRepository::class)
  7. * @ORM\Table(name="feature_flag")
  8. */
  9. class FeatureFlag
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\GeneratedValue
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. private $name;
  21. /**
  22. * @ORM\Column(type="boolean")
  23. */
  24. private $state = false;
  25. /**
  26. * FeatureFlag constructor.
  27. *
  28. * @param $name
  29. */
  30. public function __construct($name = null)
  31. {
  32. $this->name = $name;
  33. }
  34. public function getId(): ?int
  35. {
  36. return $this->id;
  37. }
  38. public function getName(): ?string
  39. {
  40. return $this->name;
  41. }
  42. public function setName(string $name): self
  43. {
  44. $this->name = $name;
  45. return $this;
  46. }
  47. public function getState(): ?bool
  48. {
  49. return $this->state;
  50. }
  51. public function setState(bool $state): self
  52. {
  53. $this->state = $state;
  54. return $this;
  55. }
  56. }