src/Entity/CellOperation.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CellOperation
  6.  *
  7.  * @ORM\Table(name="cell_operation", uniqueConstraints={@ORM\UniqueConstraint(name="label", columns={"label"})})
  8.  * @ORM\Entity()
  9.  */
  10. class CellOperation
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="label", type="string", length=255, nullable=false)
  24.      */
  25.     private $label;
  26.     /**
  27.      * @var \DateTime
  28.      *
  29.      * @ORM\Column(name="date", type="datetime", nullable=false)
  30.      */
  31.     private $date;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="movement_type", type="string", length=255, nullable=false)
  36.      */
  37.     private $movementType;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getLabel(): ?string
  43.     {
  44.         return $this->label;
  45.     }
  46.     public function setLabel(string $label): self
  47.     {
  48.         $this->label $label;
  49.         return $this;
  50.     }
  51.     public function getDate(): ?\DateTimeInterface
  52.     {
  53.         return $this->date;
  54.     }
  55.     public function setDate(\DateTimeInterface $date): self
  56.     {
  57.         $this->date $date;
  58.         return $this;
  59.     }
  60.     public function isMovementType(): ?bool
  61.     {
  62.         return $this->movementType;
  63.     }
  64.     public function setMovementType(bool $movementType): self
  65.     {
  66.         $this->movementType $movementType;
  67.         return $this;
  68.     }
  69.     public function getMovementType(): ?string
  70.     {
  71.         return $this->movementType;
  72.     }
  73. }