<?php
declare(strict_types=1);
namespace App\Domain\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Domain\Repository\LimonRepository")
* @ORM\Table(name="limon")
*/
class Limon extends AbstractEntity
{
public function __toString(): string
{
return $this->type;
}
/**
* @ORM\Column(type="string", name="type")
*/
public string $type;
/**
* @ORM\ManyToOne(targetEntity="StairType")
* @ORM\JoinColumn(name="type_escalier_id", referencedColumnName="id")
*/
public StairType $stairType;
/**
* @ORM\Column(type="decimal", precision=10, scale=2, name="supplement")
*/
public string $supplement;
// Getters and setters...
public function getType(): string
{
return $this->type;
}
public function setType(string $type): void
{
$this->type = $type;
}
public function getSupplement(): string
{
return $this->supplement;
}
public function setSupplement(string $supplement): void
{
$this->supplement = $supplement;
}
public function getStairType(): StairType
{
return $this->stairType;
}
public function setStairType(StairType $stairType): void
{
$this->stairType = $stairType;
}
}