src/Entity/BFDescriptionUser.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\BFDescriptionUserRepository")
  6.  */
  7. class BFDescriptionUser
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255, nullable=true)
  17.      */
  18.     private $forname;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $name;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $phonenumber;
  27.     /**
  28.      * @ORM\Column(type="integer", nullable=true)
  29.      */
  30.     private $licencenumber;
  31.     /**
  32.      * @ORM\OneToOne(targetEntity="App\Entity\BFUser", mappedBy="description", cascade={"persist", "remove"})
  33.      */
  34.     private $bfuser;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getForname(): ?string
  40.     {
  41.         return $this->forname;
  42.     }
  43.     public function setForname(?string $forname): self
  44.     {
  45.         $this->forname $forname;
  46.         return $this;
  47.     }
  48.     public function getName(): ?string
  49.     {
  50.         return $this->name;
  51.     }
  52.     public function setName(?string $name): self
  53.     {
  54.         $this->name $name;
  55.         return $this;
  56.     }
  57.     public function getPhonenumber(): ?string
  58.     {
  59.         return $this->phonenumber;
  60.     }
  61.     public function setPhonenumber(?string $phonenumber): self
  62.     {
  63.         $this->phonenumber $phonenumber;
  64.         return $this;
  65.     }
  66.     public function getLicencenumber(): ?int
  67.     {
  68.         return $this->licencenumber;
  69.     }
  70.     public function setLicencenumber(?int $licencenumber): self
  71.     {
  72.         $this->licencenumber $licencenumber;
  73.         return $this;
  74.     }
  75.     public function getBfuser(): ?BFUser
  76.     {
  77.         return $this->bfuser;
  78.     }
  79.     public function setBfuser(BFUser $bfuser): self
  80.     {
  81.         $this->bfuser $bfuser;
  82.         // set the owning side of the relation if necessary
  83.         if ($bfuser->getDescription() !== $this) {
  84.             $bfuser->setDescription($this);
  85.         }
  86.         return $this;
  87.     }
  88. }