<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Cell
*
* @ORM\Table(name="cell", indexes={@ORM\Index(name="FKcell709106", columns={"level_id"})})
* @ORM\Entity()
*/
class Cell
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="number", type="string", length=255, nullable=false)
*/
private $number;
/**
* @var float
*
* @ORM\Column(name="length", type="float", precision=10, scale=0, nullable=false)
*/
private $length;
/**
* @var float
*
* @ORM\Column(name="width", type="float", precision=10, scale=0, nullable=false)
*/
private $width;
/**
* @var float
*
* @ORM\Column(name="height", type="float", precision=10, scale=0, nullable=false)
*/
private $height;
/**
* @var bool
*
* @ORM\Column(name="status", type="boolean", nullable=false, options={"default"="1"})
*/
private $status = true;
/**
* @var \Level
*
* @ORM\ManyToOne(targetEntity="Level")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="level_id", referencedColumnName="id")
* })
*/
private $level;
public function getId(): ?int
{
return $this->id;
}
public function getNumber(): ?string
{
return $this->number;
}
public function setNumber(string $number): self
{
$this->number = $number;
return $this;
}
public function getLength(): ?float
{
return $this->length;
}
public function setLength(float $length): self
{
$this->length = $length;
return $this;
}
public function getWidth(): ?float
{
return $this->width;
}
public function setWidth(float $width): self
{
$this->width = $width;
return $this;
}
public function getHeight(): ?float
{
return $this->height;
}
public function setHeight(float $height): self
{
$this->height = $height;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
public function getLevel(): ?Level
{
return $this->level;
}
public function setLevel(?Level $level): self
{
$this->level = $level;
return $this;
}
public function __toString()
{
return $this->number;
}
}