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