src/Entity/Percentage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PercentageRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassPercentageRepository::class)]
  8. class Percentage
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     /*
  15.     #[ORM\OneToMany(mappedBy: 'percentage', targetEntity: Landlords::class)]
  16.     private Collection $landlord;
  17.     */
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $ownershipPercentage null;
  20.     #[ORM\ManyToOne(inversedBy'percentages',cascade: ['persist'])]
  21.     private ?PropertyList $property null;
  22.     #[ORM\ManyToOne(inversedBy'percentages',cascade: ['persist'])]
  23.     private ?Landlords $landlord null;
  24.     public function __construct()
  25.     {
  26.         //$this->landlord = new ArrayCollection();
  27.     }
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getOwnershipPercentage(): ?string
  33.     {
  34.         return $this->ownershipPercentage;
  35.     }
  36.     public function setOwnershipPercentage(?string $ownershipPercentage): self
  37.     {
  38.         $this->ownershipPercentage $ownershipPercentage;
  39.         return $this;
  40.     }
  41.     /*
  42.     public function getProperty(): ?PropertyList
  43.     {
  44.         return $this->property;
  45.     }
  46.     public function setProperty(?PropertyList $property): self
  47.     {
  48.         $this->property = $property;
  49.         return $this;
  50.     }
  51.     
  52.    
  53.     public function getLandlord(): ?Landlords
  54.     {
  55.         return $this->landlord;
  56.     }
  57.     public function setLandlord(?Landlords $landlord): self
  58.     {
  59.         $this->landlord = $landlord;
  60.         return $this;
  61.     }
  62.     */
  63.     public function getProperty(): ?PropertyList
  64.     {
  65.         return $this->property;
  66.     }
  67.     public function setProperty(?PropertyList $property): self
  68.     {
  69.         $this->property $property;
  70.         return $this;
  71.     }
  72.     public function getLandlord(): ?Landlords
  73.     {
  74.         return $this->landlord;
  75.     }
  76.     public function setLandlord(?Landlords $landlord): self
  77.     {
  78.         $this->landlord $landlord;
  79.         return $this;
  80.     }
  81. }