<?php
namespace App\Entity\Documentation;
use App\Repository\Documentation\HouseGuideNumberRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=HouseGuideNumberRepository::class)
*/
class HouseGuideNumber
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $number;
/**
* @ORM\OneToOne(targetEntity=HouseGuide::class, inversedBy="houseGuideNumber", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=true)
*/
private $houseGuide;
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 getHouseGuide(): ?HouseGuide
{
return $this->houseGuide;
}
public function setHouseGuide(HouseGuide $houseGuide): self
{
$this->houseGuide = $houseGuide;
return $this;
}
public function __toString()
{
return $this->number;
}
}