<?php
declare(strict_types=1);
namespace App\Entity;
use App\Repository\FicheSynthetiqueRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Vich\UploaderBundle\Entity\File as EmbeddedFile;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* FicheSynthetique.
*
* @ORM\Table(name="FicheSynthetique")
*
* @ORM\Entity(repositoryClass=FicheSynthetiqueRepository::class)
*
* @Vich\Uploadable
*
* @ORM\HasLifecycleCallbacks
*/
class FicheSynthetique
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="zoneCompetencePrecisionNbHabitants", type="text", nullable=true)
*/
private $zoneCompetencePrecisionNbHabitants;
/**
* @var string
*
* @ORM\Column(name="zoneSocialAxesFortsActionTerritoire", type="text", nullable=true)
*/
private $zoneSocialAxesFortsActionTerritoire;
/**
* @var string
*
* @ORM\Column(name="shortTitleProjetSocialPrecisionAxe1", type="string", length=255, nullable=true)
*/
private $shortTitleProjetSocialPrecisionAxe1;
/**
* @var string
*
* @ORM\Column(name="projetSocialPrecisionAxe1", type="text", nullable=true)
*/
private $projetSocialPrecisionAxe1;
/**
* @var string
*
* @ORM\Column(name="shortTitleProjetSocialPrecisionAxe2", type="string", length=255, nullable=true)
*/
private $shortTitleProjetSocialPrecisionAxe2;
/**
* @var string
*
* @ORM\Column(name="projetSocialPrecisionAxe2", type="text", nullable=true)
*/
private $projetSocialPrecisionAxe2;
/**
* @var string
*
* @ORM\Column(name="shortTitleProjetSocialPrecisionAxe3", type="string", length=255, nullable=true)
*/
private $shortTitleProjetSocialPrecisionAxe3;
/**
* @var string
*
* @ORM\Column(name="projetSocialPrecisionAxe3", type="text", nullable=true)
*/
private $projetSocialPrecisionAxe3;
/**
* @var string
*
* @ORM\Column(name="partenariatModalitesTravailemblematique", type="text", nullable=true)
*/
private $partenariatModalitesTravailemblematique;
/**
* @var int
*
* @ORM\Column(name="moyenHumainValorisationMethod", type="integer", nullable=true)
*/
private $moyenHumainValorisationMethod;
/**
* @var string
*
* @ORM\Column(name="moyenHumainLsQstID", type="string", length=255, nullable=true)
*/
private $moyenHumainLsQstID;
/**
* @var string
*
* @ORM\Column(name="moyenHumainLsAnalyse", type="text", nullable=true)
*/
private $moyenHumainLsAnalyse;
/**
* @var string
*
* @ORM\Column(name="moyenHumainInfo", type="text", nullable=true)
*/
private $moyenHumainInfo;
/**
* @var string
*
* @ORM\Column(name="moyensfinanciersAnalyse", type="text", nullable=true)
*/
private $moyensfinanciersAnalyse;
/**
* @ORM\OneToOne(targetEntity="Structure", inversedBy="ficheSynthetique")
*
* @ORM\JoinColumn(name="structure_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $structure;
/**
* @var string
*
* @ORM\Column(name="ficheActionEmblematiqueTitle", type="string", length=255, nullable=true)
*/
private $ficheActionEmblematiqueTitle;
/**
* @ORM\OneToOne(targetEntity="FicheAction", inversedBy="ficheSynthetique")
*
* @ORM\JoinColumn(name="ficheAction_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $ficheAction;
/**
* @var string
*
* @ORM\Column(name="themeCleTitle", type="string", length=255, nullable=true)
*/
private $themeCleTitle;
/**
* @var string
*
* @ORM\Column(name="themeCleBody", type="text", nullable=true)
*/
private $themeCleBody;
/**
* @var string
*
* @ORM\Column(name="pointSurTerritoire", type="text", nullable=true)
*/
private $pointSurTerritoire;
/**
* @var string
*
* @ORM\Column(name="analyse_divers", type="text", nullable=true)
*/
private $analyseDivers;
/**
* @Vich\UploadableField(mapping="ficheSynthetique_logo", fileNameProperty="logo.name", size="logo.size", mimeType="logo.mimeType", originalName="logo.originalName", dimensions="logo.dimensions")
*/
private ?File $logoFile = null;
/**
* @ORM\Embedded(class="Vich\UploaderBundle\Entity\File")
*/
private ?EmbeddedFile $logo = null;
/**
* @ORM\Column(name="createdAt", type="datetime", nullable=true)
*/
private \DateTime $createdAt;
/**
* @ORM\Column(name="updatedAt", type="datetime", nullable=true)
*
* @Gedmo\Timestampable(on="update")
*/
private \DateTime $updatedAt;
public function __construct()
{
$this->createdAt = new \DateTime('now');
$this->updatedAt = new \DateTime('now');
$this->logo = new EmbeddedFile();
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set zoneCompetencePrecisionNbHabitants.
*
* @param string $zoneCompetencePrecisionNbHabitants
*/
public function setZoneCompetencePrecisionNbHabitants($zoneCompetencePrecisionNbHabitants): static
{
$this->zoneCompetencePrecisionNbHabitants = $zoneCompetencePrecisionNbHabitants;
return $this;
}
/**
* Get zoneCompetencePrecisionNbHabitants.
*
* @return string
*/
public function getZoneCompetencePrecisionNbHabitants()
{
return $this->zoneCompetencePrecisionNbHabitants;
}
/**
* Set zoneSocialAxesFortsActionTerritoire.
*
* @param string $zoneSocialAxesFortsActionTerritoire
*/
public function setZoneSocialAxesFortsActionTerritoire($zoneSocialAxesFortsActionTerritoire): static
{
$this->zoneSocialAxesFortsActionTerritoire = $zoneSocialAxesFortsActionTerritoire;
return $this;
}
/**
* Get zoneSocialAxesFortsActionTerritoire.
*
* @return string
*/
public function getZoneSocialAxesFortsActionTerritoire()
{
return $this->zoneSocialAxesFortsActionTerritoire;
}
/**
* Set projetSocialPrecisionAxe1.
*
* @param string $projetSocialPrecisionAxe1
*/
public function setProjetSocialPrecisionAxe1($projetSocialPrecisionAxe1): static
{
$this->projetSocialPrecisionAxe1 = $projetSocialPrecisionAxe1;
return $this;
}
/**
* Get projetSocialPrecisionAxe1.
*
* @return string
*/
public function getProjetSocialPrecisionAxe1()
{
return $this->projetSocialPrecisionAxe1;
}
/**
* Set projetSocialPrecisionAxe2.
*
* @param string $projetSocialPrecisionAxe2
*/
public function setProjetSocialPrecisionAxe2($projetSocialPrecisionAxe2): static
{
$this->projetSocialPrecisionAxe2 = $projetSocialPrecisionAxe2;
return $this;
}
/**
* Get projetSocialPrecisionAxe2.
*
* @return string
*/
public function getProjetSocialPrecisionAxe2()
{
return $this->projetSocialPrecisionAxe2;
}
/**
* Set projetSocialPrecisionAxe3.
*
* @param string $projetSocialPrecisionAxe3
*/
public function setProjetSocialPrecisionAxe3($projetSocialPrecisionAxe3): static
{
$this->projetSocialPrecisionAxe3 = $projetSocialPrecisionAxe3;
return $this;
}
/**
* Get projetSocialPrecisionAxe3.
*
* @return string
*/
public function getProjetSocialPrecisionAxe3()
{
return $this->projetSocialPrecisionAxe3;
}
/**
* Set moyenHumainValorisationMethod.
*
* @param int $moyenHumainValorisationMethod
*/
public function setMoyenHumainValorisationMethod($moyenHumainValorisationMethod): static
{
$this->moyenHumainValorisationMethod = $moyenHumainValorisationMethod;
return $this;
}
/**
* Get moyenHumainValorisationMethod.
*
* @return int
*/
public function getMoyenHumainValorisationMethod()
{
return $this->moyenHumainValorisationMethod;
}
/**
* Set moyenHumainLsQstID.
*
* @param string $moyenHumainLsQstID
*/
public function setMoyenHumainLsQstID($moyenHumainLsQstID): static
{
$this->moyenHumainLsQstID = $moyenHumainLsQstID;
return $this;
}
/**
* Get moyenHumainLsQstID.
*
* @return string
*/
public function getMoyenHumainLsQstID()
{
return $this->moyenHumainLsQstID;
}
/**
* Set moyenHumainLsAnalyse.
*
* @param string $moyenHumainLsAnalyse
*/
public function setMoyenHumainLsAnalyse($moyenHumainLsAnalyse): static
{
$this->moyenHumainLsAnalyse = $moyenHumainLsAnalyse;
return $this;
}
/**
* Get moyenHumainLsAnalyse.
*
* @return string
*/
public function getMoyenHumainLsAnalyse()
{
return $this->moyenHumainLsAnalyse;
}
/**
* Set structure.
*/
public function setStructure(?Structure $structure = null): static
{
$this->structure = $structure;
return $this;
}
/**
* Get structure.
*
* @return Structure
*/
public function getStructure()
{
return $this->structure;
}
/**
* Set partenariatModalitesTravailemblematique.
*
* @param string $partenariatModalitesTravailemblematique
*/
public function setPartenariatModalitesTravailemblematique($partenariatModalitesTravailemblematique): static
{
$this->partenariatModalitesTravailemblematique = $partenariatModalitesTravailemblematique;
return $this;
}
/**
* Get partenariatModalitesTravailemblematique.
*
* @return string
*/
public function getPartenariatModalitesTravailemblematique()
{
return $this->partenariatModalitesTravailemblematique;
}
/**
* Set moyenHumainInfo.
*
* @param string $moyenHumainInfo
*/
public function setMoyenHumainInfo($moyenHumainInfo): static
{
$this->moyenHumainInfo = $moyenHumainInfo;
return $this;
}
/**
* Get moyenHumainInfo.
*
* @return string
*/
public function getMoyenHumainInfo()
{
return $this->moyenHumainInfo;
}
/**
* Set moyensfinanciersAnalyse.
*
* @param string $moyensfinanciersAnalyse
*/
public function setMoyensfinanciersAnalyse($moyensfinanciersAnalyse): static
{
$this->moyensfinanciersAnalyse = $moyensfinanciersAnalyse;
return $this;
}
/**
* Get moyensfinanciersAnalyse.
*
* @return string
*/
public function getMoyensfinanciersAnalyse()
{
return $this->moyensfinanciersAnalyse;
}
/**
* 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.
*
* @return Product
*/
public function setLogoFile(?File $logoFile): FicheSynthetique
{
$this->logoFile = $logoFile;
if ($this->logoFile instanceof UploadedFile) {
// 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->updatedAt = new \DateTime('now');
}
return $this;
}
public function getLogoFile(): ?File
{
return $this->logoFile;
}
public function setLogo(?EmbeddedFile $logo = null): void
{
$this->logo = $logo;
}
public function getLogo(): ?EmbeddedFile
{
return $this->logo;
}
/**
* Set createdAt.
*/
public function setCreatedAt(\DateTime $createdAt): static
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt.
*/
public function getCreatedAt(): \DateTime
{
return $this->createdAt;
}
/**
* Set updatedAt.
*/
public function setUpdatedAt(\DateTime $updatedAt): static
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt.
*/
public function getUpdatedAt(): \DateTime
{
return $this->updatedAt;
}
/**
* Set ficheAction.
*/
public function setFicheAction(?FicheAction $ficheAction = null): static
{
$this->ficheAction = $ficheAction;
return $this;
}
/**
* Get ficheAction.
*
* @return FicheAction
*/
public function getFicheAction()
{
return $this->ficheAction;
}
/**
* Set ficheActionEmblematiqueTitle.
*
* @param string $ficheActionEmblematiqueTitle
*/
public function setFicheActionEmblematiqueTitle($ficheActionEmblematiqueTitle): static
{
$this->ficheActionEmblematiqueTitle = $ficheActionEmblematiqueTitle;
return $this;
}
/**
* Get ficheActionEmblematiqueTitle.
*
* @return string
*/
public function getFicheActionEmblematiqueTitle()
{
return $this->ficheActionEmblematiqueTitle;
}
/**
* Set themeCleTitle.
*
* @param string $themeCleTitle
*/
public function setThemeCleTitle($themeCleTitle): static
{
$this->themeCleTitle = $themeCleTitle;
return $this;
}
/**
* Get themeCleTitle.
*
* @return string
*/
public function getThemeCleTitle()
{
return $this->themeCleTitle;
}
/**
* Set themeCleBody.
*
* @param string $themeCleBody
*/
public function setThemeCleBody($themeCleBody): static
{
$this->themeCleBody = $themeCleBody;
return $this;
}
/**
* Get themeCleBody.
*
* @return string
*/
public function getThemeCleBody()
{
return $this->themeCleBody;
}
/**
* Set pointSurTerritoire.
*
* @param string $pointSurTerritoire
*/
public function setPointSurTerritoire($pointSurTerritoire): static
{
$this->pointSurTerritoire = $pointSurTerritoire;
return $this;
}
/**
* Get pointSurTerritoire.
*
* @return string
*/
public function getPointSurTerritoire()
{
return $this->pointSurTerritoire;
}
/**
* Set shortTitleProjetSocialPrecisionAxe1.
*
* @param string $shortTitleProjetSocialPrecisionAxe1
*/
public function setShortTitleProjetSocialPrecisionAxe1($shortTitleProjetSocialPrecisionAxe1): static
{
$this->shortTitleProjetSocialPrecisionAxe1 = $shortTitleProjetSocialPrecisionAxe1;
return $this;
}
/**
* Get shortTitleProjetSocialPrecisionAxe1.
*
* @return string
*/
public function getShortTitleProjetSocialPrecisionAxe1()
{
return $this->shortTitleProjetSocialPrecisionAxe1;
}
/**
* Set shortTitleProjetSocialPrecisionAxe2.
*
* @param string $shortTitleProjetSocialPrecisionAxe2
*/
public function setShortTitleProjetSocialPrecisionAxe2($shortTitleProjetSocialPrecisionAxe2): static
{
$this->shortTitleProjetSocialPrecisionAxe2 = $shortTitleProjetSocialPrecisionAxe2;
return $this;
}
/**
* Get shortTitleProjetSocialPrecisionAxe2.
*
* @return string
*/
public function getShortTitleProjetSocialPrecisionAxe2()
{
return $this->shortTitleProjetSocialPrecisionAxe2;
}
/**
* Set shortTitleProjetSocialPrecisionAxe3.
*
* @param string $shortTitleProjetSocialPrecisionAxe3
*/
public function setShortTitleProjetSocialPrecisionAxe3($shortTitleProjetSocialPrecisionAxe3): static
{
$this->shortTitleProjetSocialPrecisionAxe3 = $shortTitleProjetSocialPrecisionAxe3;
return $this;
}
/**
* Get shortTitleProjetSocialPrecisionAxe3.
*
* @return string
*/
public function getShortTitleProjetSocialPrecisionAxe3()
{
return $this->shortTitleProjetSocialPrecisionAxe3;
}
/**
* Set analyseDivers.
*
* @param string $analyseDivers
*/
public function setAnalyseDivers($analyseDivers): static
{
$this->analyseDivers = $analyseDivers;
return $this;
}
/**
* Get analyseDivers.
*
* @return string
*/
public function getAnalyseDivers()
{
return $this->analyseDivers;
}
}