src/Entity/BuildingEquipment.php line 9
<?php
namespace App\Entity;
use App\Repository\BuildingEquipmentRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BuildingEquipmentRepository::class)]
class BuildingEquipment
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $value = null;
#[ORM\ManyToOne(inversedBy: 'buildingEquipment')]
private ?Building $building = null;
#[ORM\ManyToOne(inversedBy: 'residenceEquipment')]
private ?Residence $residence = 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 getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): self
{
$this->value = $value;
return $this;
}
public function getBuilding(): ?Building
{
return $this->building;
}
public function setBuilding(?Building $building): self
{
$this->building = $building;
return $this;
}
public function getResidence(): ?Residence
{
return $this->residence;
}
public function setResidence(?Residence $residence): self
{
$this->residence = $residence;
return $this;
}
}