<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\BFDescriptionUserRepository")
*/
class BFDescriptionUser
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $forname;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $phonenumber;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $licencenumber;
/**
* @ORM\OneToOne(targetEntity="App\Entity\BFUser", mappedBy="description", cascade={"persist", "remove"})
*/
private $bfuser;
public function getId(): ?int
{
return $this->id;
}
public function getForname(): ?string
{
return $this->forname;
}
public function setForname(?string $forname): self
{
$this->forname = $forname;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getPhonenumber(): ?string
{
return $this->phonenumber;
}
public function setPhonenumber(?string $phonenumber): self
{
$this->phonenumber = $phonenumber;
return $this;
}
public function getLicencenumber(): ?int
{
return $this->licencenumber;
}
public function setLicencenumber(?int $licencenumber): self
{
$this->licencenumber = $licencenumber;
return $this;
}
public function getBfuser(): ?BFUser
{
return $this->bfuser;
}
public function setBfuser(BFUser $bfuser): self
{
$this->bfuser = $bfuser;
// set the owning side of the relation if necessary
if ($bfuser->getDescription() !== $this) {
$bfuser->setDescription($this);
}
return $this;
}
}