| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577 |
- <?php
- namespace AppBundle\Entity\Billing;
- use AppBundle\Entity\Organization\Organization;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- use AppBundle\Annotation\DefaultField;
- /**
- *
- * (Plus utilisée, à confirmer)
- *
- * @Iri("http://schema.org/PesSettings")
- */
- #[ORM\Entity]
- class PesSetting
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['pessetting'])]
- private $id;
- /**
- * @var Organization
- *
- * @DefaultField
- */
- #[ORM\OneToOne(targetEntity: 'AppBundle\Entity\Organization\Organization', inversedBy: 'pesSetting', fetch: 'EAGER')]
- #[ORM\JoinColumn(nullable: false)]
- #[Assert\NotNull]
- #[Groups(['pessetting'])]
- private $organization;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 14, nullable: true)]
- #[Assert\Length(max: 14, maxMessage: 'invalid-max-length')]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $idPost;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $idColl;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $idCollTipi;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $codColl;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $codBud;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $codProd;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $libelleColBud;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $gestionnaire;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $nameComptable;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorIban;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorBic;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorIcs;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorName;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorLineOneAddress;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorLineTwoAddress;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorPublicInstitution;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['pessetting'])]
- private $creditorType;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set organization
- *
- * @param \AppBundle\Entity\Organization\Organization $organization
- *
- * @return PesSetting
- */
- public function setOrganization(\AppBundle\Entity\Organization\Organization $organization)
- {
- $this->organization = $organization;
- return $this;
- }
- /**
- * Get organization
- *
- * @return \AppBundle\Entity\Organization\Organization
- */
- public function getOrganization()
- {
- return $this->organization;
- }
- /**
- * Set idPost
- *
- * @param string $idPost
- *
- * @return PesSetting
- */
- public function setIdPost($idPost)
- {
- $this->idPost = $idPost;
- return $this;
- }
- /**
- * Get idPost
- *
- * @return string
- */
- public function getIdPost()
- {
- return $this->idPost;
- }
- /**
- * Set idColl
- *
- * @param string $idColl
- *
- * @return PesSetting
- */
- public function setIdColl($idColl)
- {
- $this->idColl = $idColl;
- return $this;
- }
- /**
- * Get idColl
- *
- * @return string
- */
- public function getIdColl()
- {
- return $this->idColl;
- }
- /**
- * Set idCollTipi
- *
- * @param string $idCollTipi
- *
- * @return PesSetting
- */
- public function setIdCollTipi($idCollTipi)
- {
- $this->idCollTipi = $idCollTipi;
- return $this;
- }
- /**
- * Get idCollTipi
- *
- * @return string
- */
- public function getIdCollTipi()
- {
- return $this->idCollTipi;
- }
- /**
- * Set codColl
- *
- * @param string $codColl
- *
- * @return PesSetting
- */
- public function setCodColl($codColl)
- {
- $this->codColl = $codColl;
- return $this;
- }
- /**
- * Get codColl
- *
- * @return string
- */
- public function getCodColl()
- {
- return $this->codColl;
- }
- /**
- * Set codBud
- *
- * @param string $codBud
- *
- * @return PesSetting
- */
- public function setCodBud($codBud)
- {
- $this->codBud = $codBud;
- return $this;
- }
- /**
- * Get codBud
- *
- * @return string
- */
- public function getCodBud()
- {
- return $this->codBud;
- }
- /**
- * Set codProd
- *
- * @param string $codProd
- *
- * @return PesSetting
- */
- public function setCodProd($codProd)
- {
- $this->codProd = $codProd;
- return $this;
- }
- /**
- * Get codProd
- *
- * @return string
- */
- public function getCodProd()
- {
- return $this->codProd;
- }
- /**
- * Get codProdPayFip
- *
- * @return string
- */
- public function getCodProdPayFip()
- {
- return mb_substr($this->codProd, 0, 2);
- }
- /**
- * Set libelleColBud
- *
- * @param string $libelleColBud
- *
- * @return PesSetting
- */
- public function setLibelleColBud($libelleColBud)
- {
- $this->libelleColBud = $libelleColBud;
- return $this;
- }
- /**
- * Get libelleColBud
- *
- * @return string
- */
- public function getLibelleColBud()
- {
- return $this->libelleColBud;
- }
- /**
- * Set gestionnaire
- *
- * @param string $gestionnaire
- *
- * @return PesSetting
- */
- public function setGestionnaire($gestionnaire)
- {
- $this->gestionnaire = $gestionnaire;
- return $this;
- }
- /**
- * Get gestionnaire
- *
- * @return string
- */
- public function getGestionnaire()
- {
- return $this->gestionnaire;
- }
- /**
- * Set nameComptable
- *
- * @param string $nameComptable
- *
- * @return PesSetting
- */
- public function setNameComptable($nameComptable)
- {
- $this->nameComptable = $nameComptable;
- return $this;
- }
- /**
- * Get nameComptable
- *
- * @return string
- */
- public function getNameComptable()
- {
- return $this->nameComptable;
- }
- /**
- * Set creditorIban
- *
- * @param string $creditorIban
- *
- * @return PesSetting
- */
- public function setCreditorIban($creditorIban)
- {
- $this->creditorIban = $creditorIban;
- return $this;
- }
- /**
- * Get creditorIban
- *
- * @return string
- */
- public function getCreditorIban()
- {
- return $this->creditorIban;
- }
- /**
- * Set creditorBic
- *
- * @param string $creditorBic
- *
- * @return PesSetting
- */
- public function setCreditorBic($creditorBic)
- {
- $this->creditorBic = $creditorBic;
- return $this;
- }
- /**
- * Get creditorBic
- *
- * @return string
- */
- public function getCreditorBic()
- {
- return $this->creditorBic;
- }
- /**
- * Set creditorIcs
- *
- * @param string $creditorIcs
- *
- * @return PesSetting
- */
- public function setCreditorIcs($creditorIcs)
- {
- $this->creditorIcs = $creditorIcs;
- return $this;
- }
- /**
- * Get creditorIcs
- *
- * @return string
- */
- public function getCreditorIcs()
- {
- return $this->creditorIcs;
- }
- /**
- * Set creditorLineOneAddress
- *
- * @param string $creditorLineOneAddress
- *
- * @return PesSetting
- */
- public function setCreditorLineOneAddress($creditorLineOneAddress)
- {
- $this->creditorLineOneAddress = $creditorLineOneAddress;
- return $this;
- }
- /**
- * Get creditorLineOneAddress
- *
- * @return string
- */
- public function getCreditorLineOneAddress()
- {
- return $this->creditorLineOneAddress;
- }
- /**
- * Set creditorLineTwoAddress
- *
- * @param string $creditorLineTwoAddress
- *
- * @return PesSetting
- */
- public function setCreditorLineTwoAddress($creditorLineTwoAddress)
- {
- $this->creditorLineTwoAddress = $creditorLineTwoAddress;
- return $this;
- }
- /**
- * Get creditorLineTwoAddress
- *
- * @return string
- */
- public function getCreditorLineTwoAddress()
- {
- return $this->creditorLineTwoAddress;
- }
- /**
- * Set creditorPublicInstitution
- *
- * @param string $creditorPublicInstitution
- *
- * @return PesSetting
- */
- public function setCreditorPublicInstitution($creditorPublicInstitution)
- {
- $this->creditorPublicInstitution = $creditorPublicInstitution;
- return $this;
- }
- /**
- * Get creditorPublicInstitution
- *
- * @return string
- */
- public function getCreditorPublicInstitution()
- {
- return $this->creditorPublicInstitution;
- }
- /**
- * Set creditorType
- *
- * @param string $creditorType
- *
- * @return PesSetting
- */
- public function setCreditorType($creditorType)
- {
- $this->creditorType = $creditorType;
- return $this;
- }
- /**
- * Get creditorType
- *
- * @return string
- */
- public function getCreditorType()
- {
- return $this->creditorType;
- }
- /**
- * Set creditorName
- *
- * @param string $creditorName
- *
- * @return PesSetting
- */
- public function setCreditorName($creditorName)
- {
- $this->creditorName = $creditorName;
- return $this;
- }
- /**
- * Get creditorName
- *
- * @return string
- */
- public function getCreditorName()
- {
- return $this->creditorName;
- }
- }
|