<?php
declare(strict_types=1);
namespace App\Domain\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Domain\Repository\StairTypeRepository")
* @ORM\Table(name="stair_type")
*/
class StairType extends AbstractEntity
{
public function __toString(): string
{
return $this->name;
}
/**
* @ORM\Column(type="string", name="nom")
*/
public string $name;
/**
* @ORM\Column(type="decimal", precision=10, scale=2, name="prix_par_marche")
*/
public string $pricePerStep;
// Getters and setters...
public function getName(): string
{
return $this->name;
}
public function getPricePerStep(): string
{
return $this->pricePerStep;
}
public function setName(string $name): void
{
$this->name = $name;
}
public function setPricePerStep(string $pricePerStep): void
{
$this->pricePerStep = $pricePerStep;
}
}