src/Flexy/Apps/POSBundle/Entity/Table.php line 15
<?php
namespace App\Flexy\Apps\POSBundle\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Flexy\Apps\POSBundle\Repository\TableRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ApiResource
*/
#[ORM\Table(name: '`table`')]
#[ORM\Entity(repositoryClass: TableRepository::class)]
class Table
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private ?string $name = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasX = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasY = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasHeight = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasWidth = null;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $backgroundColor = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasScaleX = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasScaleY = null;
#[ORM\Column(type: 'float', nullable: true)]
private ?float $canvasAngle = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getCanvasX(): ?float
{
return $this->canvasX;
}
public function setCanvasX(?float $canvasX): self
{
$this->canvasX = $canvasX;
return $this;
}
public function getCanvasY(): ?float
{
return $this->canvasY;
}
public function setCanvasY(?float $canvasY): self
{
$this->canvasY = $canvasY;
return $this;
}
public function getCanvasHeight(): ?float
{
return $this->canvasHeight;
}
public function setCanvasHeight(?float $canvasHeight): self
{
$this->canvasHeight = $canvasHeight;
return $this;
}
public function getCanvasWidth(): ?float
{
return $this->canvasWidth;
}
public function setCanvasWidth(?float $canvasWidth): self
{
$this->canvasWidth = $canvasWidth;
return $this;
}
public function getBackgroundColor(): ?string
{
return $this->backgroundColor;
}
public function setBackgroundColor(?string $backgroundColor): self
{
$this->backgroundColor = $backgroundColor;
return $this;
}
public function getCanvasScaleX(): ?float
{
return $this->canvasScaleX;
}
public function setCanvasScaleX(?float $canvasScaleX): self
{
$this->canvasScaleX = $canvasScaleX;
return $this;
}
public function getCanvasScaleY(): ?float
{
return $this->canvasScaleY;
}
public function setCanvasScaleY(?float $canvasScaleY): self
{
$this->canvasScaleY = $canvasScaleY;
return $this;
}
public function getCanvasAngle(): ?float
{
return $this->canvasAngle;
}
public function setCanvasAngle(?float $canvasAngle): self
{
$this->canvasAngle = $canvasAngle;
return $this;
}
}