<?phpnamespace App\Entity\Core;use Doctrine\DBAL\Types\Types;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping as ORM;use Vich\UploaderBundle\Mapping\Annotation as Vich;use Symfony\Component\HttpFoundation\File\File;use Symfony\Component\HttpFoundation\File\UploadedFile;use Vich\UploaderBundle\Entity\File as EmbeddedFile;/** * Agencies * * @ORM\Table("core_agencies") * @ORM\Entity(repositoryClass="App\Repository\Core\AgenciesRepository") * @ORM\HasLifecycleCallbacks() * @Vich\Uploadable */class Agencies{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @var string * * @ORM\Column(name="created_at", type="datetime", nullable=true, options={"comment":"Date de création"}) */ private $createdAt; /** * @var string * * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"Date de mise à jour"}) */ private $updatedAt; /** * @var string * * @ORM\Column(name="title", type="string", length=255, nullable=true) */ private $title; /** * @var string * * @ORM\Column(name="description", type="text", nullable=true) */ private $description; /** * @var string * * @ORM\Column(name="slug", type="string", length=255, nullable=true) */ private $slug; /** * @var string * * @ORM\Column(name="valide", type="boolean", nullable=false) */ private $valide; /** * @var string * * @ORM\Column(name="point_x", type="string", length=255, nullable=true) */ private $pointX; /** * @var string * * @ORM\Column(name="point_y", type="string", length=255, nullable=true) */ private $pointY; /** * @var string * * @ORM\Column(name="address", type="text", nullable=true) */ private $address; /** * @var string * * @ORM\Column(name="city", type="text", nullable=true) */ private $city; /** * @var string * * @ORM\Column(name="country", type="text", nullable=true) */ private $country; /** * @var string * * @ORM\Column(name="zipcode", type="text", nullable=true) */ private $zipcode; /** * @var string * * @ORM\Column(name="phone", type="text", nullable=true) */ private $phone; /** * @var string * * @ORM\Column(name="phone2", type="text", nullable=true) */ private $phone2; /** * @var string * * @ORM\Column(name="email", type="text", nullable=true) */ private $email; /** * @var string * * @ORM\Column(name="website", type="boolean", nullable=true) */ private $website; /** * @var string * * @ORM\Column(name="website_url", type="text", nullable=true) */ private $websiteUrl; /** * NOTE: This is not a mapped field of entity metadata, just a simple property. * * @Vich\UploadableField(mapping="agencies_files", fileNameProperty="image.name", size="image.size", mimeType="image.mimeType", originalName="image.originalName", dimensions="image.dimensions") * * @var File|null */ private $imageFile; /** * @ORM\Embedded(class="Vich\UploaderBundle\Entity\File") * * @var EmbeddedFile */ private $image; /** * @var string * * @ORM\Column(name="premium", type="boolean", nullable=true) */ private $premium; /** * @var string * * @ORM\Column(name="premium_application", type="boolean", nullable=true) */ private $premiumApplication; /** * @var string * * @ORM\Column(name="premium_gpt", type="boolean", nullable=true) */ private $premiumGpt; /** * @var string * * @ORM\Column(name="premium_syndic", type="boolean", nullable=true) */ private $premiumSyndic; /** * @var string * * @ORM\Column(name="courses_no_payment", type="boolean", nullable=true) */ private $coursesNoPayment; /** * @var string * * @ORM\Column(name="generated_bills", type="boolean", nullable=true) */ private $generatedBills; /** * @var string * * @ORM\Column(name="limited_user", type="integer", length=11, nullable=true) */ private $limitedUsers; /** * @var string * * @ORM\Column(name="limited_courses", type="integer", length=11, nullable=true) */ private $limitedCourses; /** * @var string * * @ORM\Column(name="limited_qcm", type="integer", length=11, nullable=true) */ private $limitedQcm; /** * @var string * * @ORM\Column(name="limited_houses", type="integer", length=11, nullable=true) */ private $limitedHouses; /** * @var string * * @ORM\Column(name="limited_qcm_application", type="integer", length=11, nullable=true) */ private $limitedQcmApplication; /** * @var string * * @ORM\Column(name="fiche_website", type="boolean", nullable=true) */ private $ficheWebsite; /** * @var string * * @ORM\Column(name="siret", type="text", nullable=true) */ private $siret; /** * @var string * * @ORM\Column(name="pourcent_commission", type="float", nullable=true) */ private $pourcentCommission; /** * @var string * * @ORM\Column(name="pourcent_commission_bank", type="float", nullable=true) */ private $pourcentCommissionBank; /** * @var string * * @ORM\Column(name="commission_centimes_bank", type="float", nullable=true) */ private $commissionCentimesBank; /** * @var string * * @ORM\Column(name="multiple_inscription", type="boolean", nullable=true) */ private $multipleInscription; /** * @var string * * @ORM\Column(name="stripe", type="boolean", nullable=true) */ private $stripe; /** * @var string * * @ORM\Column(name="demonstration", type="boolean", nullable=true) */ private $demonstration; /** * @var string * * @ORM\Column(name="discussion", type="boolean", nullable=true) */ private $discussion; /** * @var string * * @ORM\Column(name="openai", type="text", nullable=true) */ private $openai; /** * @var string * * @ORM\Column(name="gpt_discussion", type="boolean", nullable=true) */ private $gptDiscussion; /** * @var string * * @ORM\Column(name="premium_enterprise", type="boolean", nullable=true) */ private $premiumEnterprise; /** * @var \Users * * @ORM\ManyToOne(targetEntity="App\Entity\Core\Users") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="user_partner_id", referencedColumnName="id", nullable=true) * }) */ protected $userPartner; /** * @var string * * @ORM\Column(name="subscription", type="integer", length=11, nullable=true) */ private $subscription; /** * @var string * * @ORM\Column(name="no_commission", type="boolean", nullable=true) */ private $noCommission; /** * @var string * * @ORM\Column(name="no_user_commission", type="boolean", nullable=true) */ private $noUserCommission; /** * @var string * * @ORM\Column(name="first", type="boolean", nullable=true) */ private $first; /** * @var string * * @ORM\Column(name="subscription_customer_stripe", type="string", length=255, nullable=true) */ private $subscriptionCustomerStripe; public function __construct() { $this->image = new \Vich\UploaderBundle\Entity\File(); } /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->setCreatedAt(new \DateTime("now")); $this->setUpdatedAt(new \DateTime("now")); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->setUpdatedAt(new \DateTime("now")); } public function __toString() { return $this->title; } /** * If manually uploading a file (i.e. not using Symfony Form) ensure an instance * of 'UploadedFile' is injected into this setter to trigger the update. If this * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter * must be able to accept an instance of 'File' as the bundle will inject one here * during Doctrine hydration. * * @param File|UploadedFile|null $imageFile */ public function setImageFile(?File $imageFile = null) { $this->imageFile = $imageFile; if (null !== $imageFile) { // It is required that at least one field changes if you are using doctrine // otherwise the event listeners won't be called and the file is lost $this->setUpdatedAt(new \DateTime("now")); } } public function getImageFile(): ?File { return $this->imageFile; } public function setImage(EmbeddedFile $image): void { $this->image = $image; } public function getImage(): ?EmbeddedFile { return $this->image; } public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getSlug(): ?string { return $this->slug; } public function setSlug(?string $slug): self { $this->slug = $slug; return $this; } public function getValide(): ?bool { return $this->valide; } public function setValide(bool $valide): self { $this->valide = $valide; return $this; } public function getPointX(): ?string { return $this->pointX; } public function setPointX(?string $pointX): self { $this->pointX = $pointX; return $this; } public function getPointY(): ?string { return $this->pointY; } public function setPointY(?string $pointY): self { $this->pointY = $pointY; return $this; } public function getAddress(): ?string { return $this->address; } public function setAddress(?string $address): self { $this->address = $address; return $this; } public function getCity(): ?string { return $this->city; } public function setCity(?string $city): self { $this->city = $city; return $this; } public function getCountry(): ?string { return $this->country; } public function setCountry(?string $country): self { $this->country = $country; return $this; } public function getZipcode(): ?string { return $this->zipcode; } public function setZipcode(?string $zipcode): self { $this->zipcode = $zipcode; return $this; } public function getPhone(): ?string { return $this->phone; } public function setPhone(?string $phone): self { $this->phone = $phone; return $this; } public function getPhone2(): ?string { return $this->phone2; } public function setPhone2(?string $phone2): self { $this->phone2 = $phone2; return $this; } public function getEmail(): ?string { return $this->email; } public function setEmail(?string $email): self { $this->email = $email; return $this; } public function getWebsiteUrl(): ?string { return $this->websiteUrl; } public function setWebsiteUrl(?string $websiteUrl): self { $this->websiteUrl = $websiteUrl; return $this; } public function getWebsite(): ?bool { return $this->website; } public function setWebsite(?bool $website): self { $this->website = $website; return $this; } public function getPremium(): ?bool { return $this->premium; } public function setPremium(?bool $premium): self { $this->premium = $premium; return $this; } public function getPremiumApplication(): ?bool { return $this->premiumApplication; } public function setPremiumApplication(?bool $premiumApplication): self { $this->premiumApplication = $premiumApplication; return $this; } public function getPremiumGpt(): ?bool { return $this->premiumGpt; } public function setPremiumGpt(?bool $premiumGpt): self { $this->premiumGpt = $premiumGpt; return $this; } public function getPremiumSyndic(): ?bool { return $this->premiumSyndic; } public function setPremiumSyndic(?bool $premiumSyndic): self { $this->premiumSyndic = $premiumSyndic; return $this; } public function getCoursesNoPayment(): ?bool { return $this->coursesNoPayment; } public function setCoursesNoPayment(?bool $coursesNoPayment): self { $this->coursesNoPayment = $coursesNoPayment; return $this; } public function getGeneratedBills(): ?bool { return $this->generatedBills; } public function setGeneratedBills(?bool $generatedBills): self { $this->generatedBills = $generatedBills; return $this; } public function getLimitedUsers(): ?int { return $this->limitedUsers; } public function setLimitedUsers(?int $limitedUsers): self { $this->limitedUsers = $limitedUsers; return $this; } public function getLimitedCourses(): ?int { return $this->limitedCourses; } public function setLimitedCourses(?int $limitedCourses): self { $this->limitedCourses = $limitedCourses; return $this; } public function getLimitedQcm(): ?int { return $this->limitedQcm; } public function setLimitedQcm(?int $limitedQcm): self { $this->limitedQcm = $limitedQcm; return $this; } public function getLimitedHouses(): ?int { return $this->limitedHouses; } public function setLimitedHouses(?int $limitedHouses): self { $this->limitedHouses = $limitedHouses; return $this; } public function getLimitedQcmApplication(): ?int { return $this->limitedQcmApplication; } public function setLimitedQcmApplication(?int $limitedQcmApplication): self { $this->limitedQcmApplication = $limitedQcmApplication; return $this; } public function getFicheWebsite(): ?bool { return $this->ficheWebsite; } public function setFicheWebsite(?bool $ficheWebsite): self { $this->ficheWebsite = $ficheWebsite; return $this; } public function getSiret(): ?string { return $this->siret; } public function setSiret(?string $siret): self { $this->siret = $siret; return $this; } public function getPourcentCommission(): ?float { return $this->pourcentCommission; } public function setPourcentCommission(?float $pourcentCommission): self { $this->pourcentCommission = $pourcentCommission; return $this; } public function getPourcentCommissionBank(): ?float { return $this->pourcentCommissionBank; } public function setPourcentCommissionBank(?float $pourcentCommissionBank): self { $this->pourcentCommissionBank = $pourcentCommissionBank; return $this; } public function getCommissionCentimesBank(): ?float { return $this->commissionCentimesBank; } public function setCommissionCentimesBank(?float $commissionCentimesBank): self { $this->commissionCentimesBank = $commissionCentimesBank; return $this; } public function getMultipleInscription(): ?bool { return $this->multipleInscription; } public function setMultipleInscription(?bool $multipleInscription): self { $this->multipleInscription = $multipleInscription; return $this; } public function getStripe(): ?bool { return $this->stripe; } public function setStripe(?bool $stripe): self { $this->stripe = $stripe; return $this; } public function getDemonstration(): ?bool { return $this->demonstration; } public function setDemonstration(?bool $demonstration): self { $this->demonstration = $demonstration; return $this; } public function getDiscussion(): ?bool { return $this->discussion; } public function setDiscussion(?bool $discussion): self { $this->discussion = $discussion; return $this; } public function getOpenai(): ?string { return $this->openai; } public function setOpenai(?string $openai): self { $this->openai = $openai; return $this; } public function getGptDiscussion(): ?bool { return $this->gptDiscussion; } public function setGptDiscussion(?bool $gptDiscussion): self { $this->gptDiscussion = $gptDiscussion; return $this; } public function getPremiumEnterprise(): ?bool { return $this->premiumEnterprise; } public function setPremiumEnterprise(?bool $premiumEnterprise): self { $this->premiumEnterprise = $premiumEnterprise; return $this; } public function getSubscription(): ?int { return $this->subscription; } public function setSubscription(int $subscription): self { $this->subscription = $subscription; return $this; } public function getUserPartner(): ?Users { return $this->userPartner; } public function setUserPartner(?Users $userPartner): self { $this->userPartner = $userPartner; return $this; } public function getNoCommission(): ?bool { return $this->noCommission; } public function setNoCommission(?bool $noCommission): self { $this->noCommission = $noCommission; return $this; } public function getNoUserCommission(): ?bool { return $this->noUserCommission; } public function setNoUserCommission(?bool $noCommission): self { $this->noUserCommission = $noCommission; return $this; } public function getFirst(): ?bool { return $this->first; } public function setFirst(?bool $first): self { $this->first = $first; return $this; } public function isValide(): ?bool { return $this->valide; } public function isWebsite(): ?bool { return $this->website; } public function isPremium(): ?bool { return $this->premium; } public function isPremiumApplication(): ?bool { return $this->premiumApplication; } public function isPremiumGpt(): ?bool { return $this->premiumGpt; } public function isPremiumSyndic(): ?bool { return $this->premiumSyndic; } public function isCoursesNoPayment(): ?bool { return $this->coursesNoPayment; } public function isGeneratedBills(): ?bool { return $this->generatedBills; } public function isFicheWebsite(): ?bool { return $this->ficheWebsite; } public function isMultipleInscription(): ?bool { return $this->multipleInscription; } public function isStripe(): ?bool { return $this->stripe; } public function isDemonstration(): ?bool { return $this->demonstration; } public function isDiscussion(): ?bool { return $this->discussion; } public function isGptDiscussion(): ?bool { return $this->gptDiscussion; } public function isPremiumEnterprise(): ?bool { return $this->premiumEnterprise; } public function isNoCommission(): ?bool { return $this->noCommission; } public function isNoUserCommission(): ?bool { return $this->noUserCommission; } public function isFirst(): ?bool { return $this->first; } public function getSubscriptionCustomerStripe(): ?string { return $this->subscriptionCustomerStripe; } public function setSubscriptionCustomerStripe(?string $subscriptionCustomerStripe): static { $this->subscriptionCustomerStripe = $subscriptionCustomerStripe; return $this; }}