src/Entity/Annee.php line 11
<?phpnamespace App\Entity;use App\Repository\AnneeRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: AnneeRepository::class)]class Annee{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 100)]private ?string $libelle = null;#[ORM\OneToMany(mappedBy: 'annee', targetEntity: Mois::class)]private Collection $mois;#[ORM\OneToMany(mappedBy: 'annee', targetEntity: Payment::class)]private Collection $payments;#[ORM\Column(nullable: true)]private ?bool $isGenerate = null;#[ORM\ManyToMany(targetEntity: Entreprise::class, inversedBy: 'annees')]private Collection $marchand;#[ORM\OneToMany(mappedBy: 'year', targetEntity: PaymentGenerator::class)]private Collection $paymentGenerators;public function __construct(){$this->mois = new ArrayCollection();$this->payments = new ArrayCollection();$this->marchand = new ArrayCollection();$this->paymentGenerators = new ArrayCollection();}/*** @return int|null*/public function getId(): ?int{return $this->id;}/*** @param int|null $id*/public function setId(?int $id): void{$this->id = $id;}/*** @return string|null*/public function getLibelle(): ?string{return $this->libelle;}/*** @param string|null $libelle*/public function setLibelle(?string $libelle): void{$this->libelle = $libelle;}/*** @return ArrayCollection|Collection*/public function getMois(): ArrayCollection|Collection{return $this->mois;}/*** @param ArrayCollection|Collection $mois*/public function setMois(ArrayCollection|Collection $mois): void{$this->mois = $mois;}/*** @return ArrayCollection|Collection*/public function getPayments(): ArrayCollection|Collection{return $this->payments;}/*** @param ArrayCollection|Collection $payments*/public function setPayments(ArrayCollection|Collection $payments): void{$this->payments = $payments;}/*** @return bool|null*/public function getIsGenerate(): ?bool{return $this->isGenerate;}/*** @param bool|null $isGenerate*/public function setIsGenerate(?bool $isGenerate): void{$this->isGenerate = $isGenerate;}/*** @return ArrayCollection|Collection*/public function getMarchand(): ArrayCollection|Collection{return $this->marchand;}/*** @param ArrayCollection|Collection $marchand*/public function setMarchand(ArrayCollection|Collection $marchand): void{$this->marchand = $marchand;}public function __toString(){return $this->libelle;}/*** @return Collection<int, PaymentGenerator>*/public function getPaymentGenerators(): Collection{return $this->paymentGenerators;}public function addPaymentGenerator(PaymentGenerator $paymentGenerator): static{if (!$this->paymentGenerators->contains($paymentGenerator)) {$this->paymentGenerators->add($paymentGenerator);$paymentGenerator->setYear($this);}return $this;}public function removePaymentGenerator(PaymentGenerator $paymentGenerator): static{if ($this->paymentGenerators->removeElement($paymentGenerator)) {// set the owning side to null (unless already changed)if ($paymentGenerator->getYear() === $this) {$paymentGenerator->setYear(null);}}return $this;}}