src/Flexy/Apps/POSBundle/Entity/Table.php line 15

  1. <?php
  2. namespace App\Flexy\Apps\POSBundle\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Flexy\Apps\POSBundle\Repository\TableRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ApiResource
  8.  */
  9. #[ORM\Table(name'`table`')]
  10. #[ORM\Entity(repositoryClassTableRepository::class)]
  11. class Table
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column(type'integer')]
  16.     private $id;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $name null;
  19.     #[ORM\Column(type'float'nullabletrue)]
  20.     private ?float $canvasX null;
  21.     #[ORM\Column(type'float'nullabletrue)]
  22.     private ?float $canvasY null;
  23.     #[ORM\Column(type'float'nullabletrue)]
  24.     private ?float $canvasHeight null;
  25.     #[ORM\Column(type'float'nullabletrue)]
  26.     private ?float $canvasWidth null;
  27.     #[ORM\Column(type'string'length255nullabletrue)]
  28.     private ?string $backgroundColor null;
  29.     #[ORM\Column(type'float'nullabletrue)]
  30.     private ?float $canvasScaleX null;
  31.     #[ORM\Column(type'float'nullabletrue)]
  32.     private ?float $canvasScaleY null;
  33.     #[ORM\Column(type'float'nullabletrue)]
  34.     private ?float $canvasAngle null;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getName(): ?string
  40.     {
  41.         return $this->name;
  42.     }
  43.     public function setName(string $name): self
  44.     {
  45.         $this->name $name;
  46.         return $this;
  47.     }
  48.     public function getCanvasX(): ?float
  49.     {
  50.         return $this->canvasX;
  51.     }
  52.     public function setCanvasX(?float $canvasX): self
  53.     {
  54.         $this->canvasX $canvasX;
  55.         return $this;
  56.     }
  57.     public function getCanvasY(): ?float
  58.     {
  59.         return $this->canvasY;
  60.     }
  61.     public function setCanvasY(?float $canvasY): self
  62.     {
  63.         $this->canvasY $canvasY;
  64.         return $this;
  65.     }
  66.     public function getCanvasHeight(): ?float
  67.     {
  68.         return $this->canvasHeight;
  69.     }
  70.     public function setCanvasHeight(?float $canvasHeight): self
  71.     {
  72.         $this->canvasHeight $canvasHeight;
  73.         return $this;
  74.     }
  75.     public function getCanvasWidth(): ?float
  76.     {
  77.         return $this->canvasWidth;
  78.     }
  79.     public function setCanvasWidth(?float $canvasWidth): self
  80.     {
  81.         $this->canvasWidth $canvasWidth;
  82.         return $this;
  83.     }
  84.     public function getBackgroundColor(): ?string
  85.     {
  86.         return $this->backgroundColor;
  87.     }
  88.     public function setBackgroundColor(?string $backgroundColor): self
  89.     {
  90.         $this->backgroundColor $backgroundColor;
  91.         return $this;
  92.     }
  93.     public function getCanvasScaleX(): ?float
  94.     {
  95.         return $this->canvasScaleX;
  96.     }
  97.     public function setCanvasScaleX(?float $canvasScaleX): self
  98.     {
  99.         $this->canvasScaleX $canvasScaleX;
  100.         return $this;
  101.     }
  102.     public function getCanvasScaleY(): ?float
  103.     {
  104.         return $this->canvasScaleY;
  105.     }
  106.     public function setCanvasScaleY(?float $canvasScaleY): self
  107.     {
  108.         $this->canvasScaleY $canvasScaleY;
  109.         return $this;
  110.     }
  111.     public function getCanvasAngle(): ?float
  112.     {
  113.         return $this->canvasAngle;
  114.     }
  115.     public function setCanvasAngle(?float $canvasAngle): self
  116.     {
  117.         $this->canvasAngle $canvasAngle;
  118.         return $this;
  119.     }
  120. }