src/Entity/OrderMovement.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderMovementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=OrderMovementRepository::class)
  8.  */
  9. class OrderMovement
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      * @Groups("order")
  20.      */
  21.     private $quantity;
  22.     /**
  23.      * @ORM\Column(type="float")
  24.      * @Groups("order")
  25.      */
  26.     private $amount;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="orderMovement")
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private $command;
  32.     /**
  33.      * @ORM\Column(type="array")
  34.      * @Groups("order")
  35.      */
  36.     private $articleArray = [];
  37.     /**
  38.      * @ORM\Column(type="float")
  39.      * @Groups("order")
  40.      */
  41.     private $weight;
  42.     /**
  43.      * @ORM\Column(type="float")
  44.      * @Groups("order")
  45.      */
  46.     private $totalWeight;
  47.     /**
  48.      * @ORM\Column(type="float")
  49.      * @Groups("order")
  50.      */
  51.     private $rightPriceUnit;
  52.     public function getId(): ?int
  53.     {
  54.         return $this->id;
  55.     }
  56.     public function getQuantity(): ?int
  57.     {
  58.         return $this->quantity;
  59.     }
  60.     public function setQuantity(int $quantity): self
  61.     {
  62.         $this->quantity $quantity;
  63.         return $this;
  64.     }
  65.     public function getAmount(): ?float
  66.     {
  67.         return $this->amount;
  68.     }
  69.     public function setAmount(float $amount): self
  70.     {
  71.         $this->amount $amount;
  72.         return $this;
  73.     }
  74.     public function getCommand(): ?Order
  75.     {
  76.         return $this->command;
  77.     }
  78.     public function setCommand(?Order $command): self
  79.     {
  80.         $this->command $command;
  81.         return $this;
  82.     }
  83.     public function getArticleArray(): ?array
  84.     {
  85.         return $this->articleArray;
  86.     }
  87.     public function setArticleArray(array $articleArray): self
  88.     {
  89.         $this->articleArray $articleArray;
  90.         return $this;
  91.     }
  92.     public function getWeight(): ?float
  93.     {
  94.         return $this->weight;
  95.     }
  96.     public function setWeight(float $weight): self
  97.     {
  98.         $this->weight $weight;
  99.         return $this;
  100.     }
  101.     public function getTotalWeight(): ?float
  102.     {
  103.         return $this->totalWeight;
  104.     }
  105.     public function setTotalWeight(float $totalWeight): self
  106.     {
  107.         $this->totalWeight $totalWeight;
  108.         return $this;
  109.     }
  110.     public function getRightPriceUnit(): ?float
  111.     {
  112.         return $this->rightPriceUnit;
  113.     }
  114.     public function setRightPriceUnit(float $rightPriceUnit): self
  115.     {
  116.         $this->rightPriceUnit $rightPriceUnit;
  117.         return $this;
  118.     }
  119. }