<?php
// src/Entity/OtherContract.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* @ORM\Entity()
* @ORM\Table(name="69pixl_other_contract")
*/
class OtherContract
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
public function getId(): ?int
{
return $this->id;
}
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $organisme;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numeroAdherent;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateAdhesion;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $montantAnnuel;
/**
* @var membership[]
* @ORM\ManyToOne(targetEntity="App\Entity\Ba", inversedBy="otherContracts")
*/
protected $ba;
public function getOrganisme(): ?string
{
return $this->organisme;
}
public function setOrganisme(?string $organisme): self
{
$this->organisme = $organisme;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getNumeroAdherent(): ?string
{
return $this->numeroAdherent;
}
public function setNumeroAdherent(?string $numeroAdherent): self
{
$this->numeroAdherent = $numeroAdherent;
return $this;
}
public function getDateAdhesion()
{
return $this->dateAdhesion;
}
public function setDateAdhesion($dateAdhesion)
{
$this->dateAdhesion = $dateAdhesion;
return $this;
}
public function getMontantAnnuel(): ?float
{
return $this->montantAnnuel;
}
public function setMontantAnnuel(?float $montantAnnuel): self
{
$this->montantAnnuel = $montantAnnuel;
return $this;
}
public function getBa(): ?Ba
{
return $this->ba;
}
public function setBa(?Ba $ba): self
{
$this->ba = $ba;
return $this;
}
}