26 lines
476B

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\ShopBundle\Context\StatusInterface;
  5. trait StatusTrait
  6. {
  7. /**
  8. * @ORM\Column(type="float")
  9. */
  10. protected $status;
  11. public function getStatus(): ?float
  12. {
  13. return $this->status;
  14. }
  15. public function setStatus(float $status): self
  16. {
  17. $this->status = $status;
  18. return $this;
  19. }
  20. }