src/Entity/DisasterDeclaration.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTime;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7. use App\Validator\Constraints as AcmeAssert;
  8. /**
  9.  * DisasterDeclaration
  10.  *
  11.  * @AcmeAssert\DisasterDeclarationNature
  12.  */
  13. #[ORM\Entity(repositoryClass"App\Repository\DisasterDeclarationRepository")]
  14. #[ORM\Table(name"disaster_declaration")]
  15. class DisasterDeclaration
  16. {
  17.     #[ORM\Column(name"disasterOrigin"type"string"length255nullabletrue)]
  18.     private ?string $disasterOrigin;
  19.     #[ORM\Column(name"disasterCause"type"string"length255nullabletrue)]
  20.     private ?string $disasterCause;
  21.     #[ORM\Column(name"residentName"type"string"length255nullabletrue)]
  22.     private ?string $residentName;
  23.     #[ORM\Column(name"residentOrigin"type"string"length255nullabletrue)]
  24.     private ?string $residentOrigin;
  25.     #[ORM\Column(name"prejudiceEstimate"type"string"length255nullabletrue)]
  26.     private ?string $prejudiceEstimate;
  27.     #[ORM\Column(type"text"nullabletrue)]
  28.     private ?string $nonSavedItem;
  29.     #[ORM\Column(type"boolean"nullabletrue)]
  30.     private ?bool $isWorkshop;
  31.     #[ORM\Column(name"workshopNumber"type"string"length255nullabletrue)]
  32.     private ?string $workshopNumber;
  33.     #[ORM\Column(name"workshop"type"string"length255nullabletrue)]
  34.     private ?string $workshop;
  35.     #[ORM\Column(name"workshopAddress"type"string"length255nullabletrue)]
  36.     private string $workshopAddress;
  37.     #[ORM\Column(type"boolean")]
  38.     private bool $isDeleted false;
  39.     #[ORM\Column(type"datetime")]
  40.     private datetime $createdAt;
  41.     #[ORM\OneToMany(targetEntityDisasterDeclarationPhoto::class, mappedBy"disasterDeclaration"cascade: ["persist""remove"])]
  42.     private Collection|array $disasterDeclarationPhotos;
  43.     #[ORM\Column(type"string"length255nullabletrue)]
  44.     private ?string $declarer;
  45.     #[Assert\Choice(callback"getHouseTypes"multiplefalse)]
  46.     #[ORM\Column(type"string"length255nullabletrue)]
  47.     private ?string $houseType;
  48.     #[ORM\ManyToOne(targetEntityVehicle::class, inversedBy"vehicle")]
  49.     #[ORM\JoinColumn(nullabletrue)]
  50.     private ?Vehicle $vehicle;
  51.     #[ORM\ManyToOne(targetEntityAddress::class, inversedBy"disasterDeclarations")]
  52.     #[ORM\JoinColumn(nullabletrue)]
  53.     private ?Address $address;
  54.     #[ORM\Column(type"string"length255nullabletrue)]
  55.     private ?string $damagesFound;
  56.     #[ORM\OneToMany(targetEntityCharge::class, mappedBy"disasterDeclaration")]
  57.     private Collection|array $charges;
  58.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy"disasterDeclarations"cascade: ["persist"])]
  59.     #[ORM\JoinColumn(nullablefalse)]
  60.     private User $user;
  61.     #[ORM\ManyToMany(targetEntityDocument::class, inversedBy"disasterDeclarations")]
  62.     private Collection|array $destroyedDocuments;
  63.     #[ORM\ManyToMany(targetEntityItem::class, inversedBy"disasterDeclarations")]
  64.     private Collection|array $destroyedItems;
  65.     #[ORM\OneToMany(targetEntityVideo::class, mappedBy"disasterDeclaration")]
  66.     private Collection|array $videos;
  67.     #[ORM\ManyToMany(targetEntityInsurance::class, inversedBy"disasterDeclarations")]
  68.     private Collection|array $insurances;
  69.     #[ORM\Column(type"string"length255nullabletrue)]
  70.     private ?string $parkingPlace;
  71.     #[ORM\Column(type"string"length255nullabletrue)]
  72.     private ?string $parkingPlaceNature;
  73.     #[ORM\Column(type"boolean")]
  74.     private bool $brokenWindow false;
  75.     #[Assert\NotBlank(message'Ce champ est obligatoire')]
  76.     #[Assert\Choice(callback"getTypes"multiplefalse)]
  77.     #[ORM\Column(type"string"length255nullabletrue)]
  78.     private ?string $type;
  79.     #[ORM\Column(name"damagesMore"type"text"nullabletrue)]
  80.     private ?string $damagesMore;
  81.     #[ORM\Column(type"string"length255nullabletrue)]
  82.     private ?string $damagesDescription;
  83.     #[ORM\Column(name"firstFactsDate"type"date"nullabletrue)]
  84.     private ?DateTime $firstFactsDate;
  85.     #[ORM\Column(name"secondFactsHour"type"datetimetz"nullabletrue)]
  86.     private ?DateTime $secondFactsHour;
  87.     #[ORM\Column(name"disasterAddress"type"string"length255nullabletrue)]
  88.     private ?string $disasterAddress;
  89.     #[ORM\Column(name"id"type"integer")]
  90.     #[ORM\Id]
  91.     #[ORM\GeneratedValue(strategy"AUTO")]
  92.     private ?int $id;
  93.     /**
  94.      * Get id
  95.      *
  96.      * @return int
  97.      */
  98.     public function getId()
  99.     {
  100.         return $this->id;
  101.     }
  102.     public function __construct()
  103.     {
  104.         $this->createdAt = new DateTime();
  105.     }
  106.     public function __toString()
  107.     {
  108.         return "#" $this->id " - " $this->createdAt->format("d/m/Y H:i");
  109.     }
  110.     public static function getHouseTypes()
  111.     {
  112.         $arr = [
  113.             "Maison" => "house",
  114.             "Appartement" => "flat",
  115.         ];
  116.         return $arr;
  117.     }
  118.     public static function getTypes()
  119.     {
  120.         $arr = [
  121.             "Dégats des eaux" => "waterDegradations",
  122.             "Incendie" => "fire",
  123.             "Grêle" => "hail",
  124.             "Inondation" => "flood",
  125.             "Tempête" => "storm",
  126.             "Foudre" => "ligthning",
  127.         ];
  128.         return $arr;
  129.     }
  130.     /**
  131.      *
  132.      */
  133.     public static function getDamagesDescriptions($type$isVehicule false)
  134.     {
  135.         switch ($type) {
  136.             case 'waterDegradations':
  137.                 $arr = [
  138.                     "Matériel(s) électroménager dégradé(s)",
  139.                     "Meuble(s) dégradé(s)",
  140.                     "Moquette dégradée",
  141.                     "Mur de cuisine dégradés",
  142.                     "Mur de salle de bain dégradés",
  143.                     "Parquet dégradé",
  144.                     "Plafond de cuisine dégradés",
  145.                     "Plafond de salle de bain dégradés",
  146.                     "Revétement de sol dégradé",
  147.                     "Revétement mural dégradé",
  148.                 ];
  149.                 break;
  150.             case 'fire':
  151.                 if ($isVehicule) {
  152.                     $arr = [
  153.                         "Véhicule totalement incendié",
  154.                         "Véhicule totalement incendié par propagation",
  155.                         "Véhicule partiellement incendié par propagation sur l’avant",
  156.                         "Véhicule partiellement incendié par propagation sur l’arrière",
  157.                     ];
  158.                 } else {
  159.                     $arr = [
  160.                         "Appreils électroménager détruits",
  161.                         "Appreils multimédias détruits",
  162.                         "Feu de cheminée",
  163.                         "Feu de cuisine ",
  164.                         "Local partiellement incendié",
  165.                         "Local totalement incendié",
  166.                         "Logement partiellement incendié",
  167.                         "Logement totalement incendié",
  168.                     ];
  169.                 }
  170.                 break;
  171.             case 'hail':
  172.                 if ($isVehicule) {
  173.                     $arr = [
  174.                         "Impactes de grêle multiples",
  175.                         "Véhicule totalement grêlé",
  176.                         "Parebrise cassé",
  177.                         "Vitre du hayon arrière cassée",
  178.                         "Vitre latérale cassée",
  179.                     ];
  180.                 } else {
  181.                     $arr = [
  182.                         "Ardoises cassées",
  183.                         "Dégradation de la toiture",
  184.                         "Vitre de fenêtre(s) de toit brisée(s)",
  185.                         "Fenétre(s) de toit dégradée(s)",
  186.                         "Goutiéres détruites",
  187.                         "Mobilier de jardin détruit",
  188.                         "Toiture de vérenda dégradée",
  189.                         "Tuiles cassées",
  190.                         "Vitre(s) brisée(s)",
  191.                         "Vitre(s) de lucarne(s) de toiture brisée(s)",
  192.                         "Toiture vitrée de vérenda brisée",
  193.                     ];
  194.                 }
  195.                 break;
  196.             case 'flood':
  197.                 if ($isVehicule) {
  198.                     $arr = [
  199.                         "Habitacle partiellement inondé",
  200.                         "Compartiment moteur partiellement inondé",
  201.                         "Habitacle totalement inondé",
  202.                         "Compartiment moteur totalement inondé",
  203.                         "Véhicule totalement submergé",
  204.                         "Véhicule déplacé par la crue",
  205.                     ];
  206.                 } else {
  207.                     $arr = [
  208.                         "Abri de jardin inondé",
  209.                         "Cave à vin inondée",
  210.                         "cave inondée",
  211.                         "Garage inondé",
  212.                         "Logement partiellement inondé",
  213.                         "Logement totalement inondé",
  214.                         "Rez-de-chaussée inondé",
  215.                         "Sous sol inondé ",
  216.                     ];
  217.                 }
  218.                 break;
  219.             case 'storm':
  220.                 if ($isVehicule) {
  221.                     $arr = [
  222.                         "Véhicule dégradé à la suite d'un affaissement de chaussée",
  223.                         "Véhicule dégradé à la suite d'un affaissement de terrain",
  224.                         "Véhicule dégradé par des projections de matériaux",
  225.                         "Véhicule dégradé par des projections de tuiles",
  226.                         "Véhicule dégradé par des projections de végétaux",
  227.                         "Véhicule dégradé par l’effondrement d’un batiment",
  228.                         "Véhicule dégradé par l’effondrement d’un mur",
  229.                         "Véhicule dégradé par l’effondrement d’une cheminée",
  230.                         "Véhicule dégradé par une chute d’arbre",
  231.                     ];
  232.                 } else {
  233.                     $arr = [
  234.                         "Abris de jardin dégradé",
  235.                         "Ardoises cassées",
  236.                         "Batiment dégradé à la suite d'un affaissement de terrain",
  237.                         "Batiment dégradé par des projections de matériaux",
  238.                         "Batiment dégradé par des projections de tuiles",
  239.                         "Batiment dégradé par des projections de végétaux",
  240.                         "Batiment dégradé par une chute d’arbre",
  241.                         "Batiment dégradé par une chute de cheminée",
  242.                         "Converture de toiture partiellement arrachée",
  243.                         "Coulée de boue",
  244.                         "Dégradation de la toiture",
  245.                         "Effondrement d’un batiment",
  246.                         "Effondrement d’un mur",
  247.                         "Effondrement d’une cheminée",
  248.                         "Fenêtre(s) de toit brisée(s)",
  249.                         "Fenétres de toit dégradées",
  250.                         "Goutiéres détruites",
  251.                         "Isolation de toiture détruite",
  252.                         "Matériel de jardin détruit",
  253.                         "Mobilier de jardin détruit",
  254.                         "Outillage de jardin détruit",
  255.                         "Piéces d’habitation inondées par les précipitations",
  256.                         "Serre de jardin détruite",
  257.                         "Toiture arrachée par la force des vents",
  258.                         "Toiture de batiment dégradée par une chute d’arbre",
  259.                         "Toiture de batiment dégradée par une chute de matériaux",
  260.                         "Toiture de vérenda dégradée par une chute d’arbre",
  261.                         "Toiture de vérenda dégradée par une chute de matériaux",
  262.                         "Toiture partiellement arrachée par la force du vent",
  263.                         "Tuiles cassées",
  264.                         "Vitre(s) de toiture brisée(s)",
  265.                         "Vitres brisées",
  266.                     ];
  267.                 }
  268.                 break;
  269.             case 'ligthning':
  270.                 if ($isVehicule) {
  271.                     $arr = [
  272.                         "Dégradation des systèmes électriques",
  273.                         "Dégradation des systèmes électroniques",
  274.                         "Véhicule totalement incendié",
  275.                         "Véhicule partiellement incendié",
  276.                     ];
  277.                 } else {
  278.                     $arr = [
  279.                         "Destruction d’appareils multimédias",
  280.                         "Destruction d’appreils electroménager",
  281.                         "Destruction du circuit électrique ",
  282.                         "Destruction partielle du circuit électrique",
  283.                         "Local partiellement incendié",
  284.                         "Local totalement incendié",
  285.                         "Logement partiellement incendié",
  286.                         "Logement totalement incendié",
  287.                     ];
  288.                 }
  289.                 break;
  290.         }
  291.         return array_combine($arr$arr);
  292.     }
  293.     public static function getParkingPlaceNatures()
  294.     {
  295.         $arr = [
  296.             "Dans la cour de mon domicile",
  297.             "Dans mon garage",
  298.             "Dans un box extérieur",
  299.             "Dans un box souterrain",
  300.             "En mouvement sur la voie publique en zone urbaine",
  301.             "En mouvement sur la voie publique hors zone urbaine",
  302.             "En mouvement sur une autoroute",
  303.             "En mouvement sur une route de campagne",
  304.             "En mouvement sur une route urbaine",
  305.             "En mouvement sur une voie rapide",
  306.             "Sous un abri extérieur ",
  307.             "Stationné dans la cour devant mon local",
  308.             "Stationné dans la rue de mon domicile",
  309.             "Stationné dans la rue devant mon domicile",
  310.             "Stationné dans la rue devant mon local",
  311.             "Stationné sur la voie publique",
  312.             "Stationné sur le parking d’un centre commercial",
  313.             "Stationné sur le parking d’un commerce",
  314.             "Stationné sur le parking d’une société",
  315.             "Stationné sur un emplacement de parking privé extérieur ",
  316.             "Stationné sur un emplacement de parking privé souterrain ",
  317.             "Stationné sur un emplacement de parking public extérieur ",
  318.             "Stationné sur un emplacement de parking public souterrain ",
  319.             "Stationné sur un espace privé",
  320.             "Stationné sur un espace public ",
  321.             "Stationné sur une aire d’autoroute",
  322.             "Stationné sur une aire de repos",
  323.             "Stationné sur une voie privée",
  324.         ];
  325.         return array_combine($arr$arr);
  326.     }
  327.     /**
  328.      *
  329.      */
  330.     public static function getPrejudiceEstimates()
  331.     {
  332.         $arr = [
  333.             "Inférieure à 500 euros",
  334.             "Comprise entre 500 et 1500 euros",
  335.             "Comprise entre 1500 et 3000 euros",
  336.             "Comprise entre 3000 et 5000 euros",
  337.             "Supérieure à 5000 euros",
  338.             "Sera déterminée selon le devis des réparations",
  339.         ];
  340.         return array_combine($arr$arr);
  341.     }
  342.     /**
  343.      *
  344.      */
  345.     public static function getDisasterCauses()
  346.     {
  347.         $arr = [
  348.             'Débordement de baignoire',
  349.             'Débordement de douche',
  350.             'Débordement de lavabo',
  351.             'Débordement d\'évier',
  352.             'Défaut détanchéité d\'une instalation sanitaire',
  353.             'Fuite d\'eau d\'origine indéterminée',
  354.             'Fuite d\'un ballon d\'eau chaude',
  355.             'Fuite d\'un joint de canalisation',
  356.             'Fuite d\'un joint de robinet',
  357.             'Fuite provenant d\'une colonne technique',
  358.             'Lave linge défectueux',
  359.             'Lave vaisselle défectueux',
  360.             'Rupture d\'une canalisati,on apparente'
  361.         ];
  362.         return array_combine($arr$arr);
  363.     }
  364.     /**
  365.      *
  366.      */
  367.     public static function getDisasterOrigins()
  368.     {
  369.         $arr = [
  370.             'Mon logement' => 'flat',
  371.             'Un logement mitoyen identifié' => 'closeFlat',
  372.             'Un logement d\'un étage supérieur identifié' => 'flatTop',
  373.             'Un batiment mitoyen identifié' => 'closeBuilding',
  374.             'Un logement d\'un étage supérieur non identifié' => 'flatTopUndefined',
  375.             'Un logement ou batiment mitoyen non identifié' => 'closeFlatBuildingUndefined',
  376.             'Les parties communes de l\'immeuble' => 'communal',
  377.         ];
  378.         return $arr;
  379.     }
  380.     /**
  381.      * Set damagesDescription
  382.      *
  383.      * @param string $damagesDescription
  384.      *
  385.      * @return DisasterDeclaration
  386.      */
  387.     public function setDamagesDescription($damagesDescription)
  388.     {
  389.         $this->damagesDescription $damagesDescription;
  390.         return $this;
  391.     }
  392.     /**
  393.      * Get damagesDescription
  394.      *
  395.      * @return string
  396.      */
  397.     public function getDamagesDescription()
  398.     {
  399.         return $this->damagesDescription;
  400.     }
  401.     /**
  402.      * Set firstFactsDate
  403.      *
  404.      * @param DateTime $firstFactsDate
  405.      *
  406.      * @return DisasterDeclaration
  407.      */
  408.     public function setFirstFactsDate($firstFactsDate)
  409.     {
  410.         $this->firstFactsDate $firstFactsDate;
  411.         return $this;
  412.     }
  413.     /**
  414.      * Get firstFactsDate
  415.      *
  416.      * @return DateTime
  417.      */
  418.     public function getFirstFactsDate()
  419.     {
  420.         return $this->firstFactsDate;
  421.     }
  422.     /**
  423.      * Set secondFactsDate
  424.      *
  425.      * @param DateTime $secondFactsDate
  426.      *
  427.      * @return DisasterDeclaration
  428.      */
  429.     public function setSecondFactsDate($secondFactsDate)
  430.     {
  431.         $this->secondFactsDate $secondFactsDate;
  432.         return $this;
  433.     }
  434.     /**
  435.      * Get secondFactsDate
  436.      *
  437.      * @return DateTime
  438.      */
  439.     public function getSecondFactsDate()
  440.     {
  441.         return $this->secondFactsDate;
  442.     }
  443.     /**
  444.      * Set disasterAddress
  445.      *
  446.      * @param string $disasterAddress
  447.      *
  448.      * @return DisasterDeclaration
  449.      */
  450.     public function setDisasterAddress($disasterAddress)
  451.     {
  452.         $this->disasterAddress $disasterAddress;
  453.         return $this;
  454.     }
  455.     /**
  456.      * Get disasterAddress
  457.      *
  458.      * @return string
  459.      */
  460.     public function getDisasterAddress()
  461.     {
  462.         return $this->disasterAddress;
  463.     }
  464.     /**
  465.      * Set createdAt
  466.      *
  467.      * @param DateTime $createdAt
  468.      *
  469.      * @return DisasterDeclaration
  470.      */
  471.     public function setCreatedAt($createdAt)
  472.     {
  473.         $this->createdAt $createdAt;
  474.         return $this;
  475.     }
  476.     /**
  477.      * Get createdAt
  478.      *
  479.      * @return DateTime
  480.      */
  481.     public function getCreatedAt()
  482.     {
  483.         return $this->createdAt;
  484.     }
  485.     /**
  486.      * Set user
  487.      *
  488.      * @param \App\Entity\User $user
  489.      *
  490.      * @return DisasterDeclaration
  491.      */
  492.     public function setUser(\App\Entity\User $user)
  493.     {
  494.         $this->user $user;
  495.         return $this;
  496.     }
  497.     /**
  498.      * Get user
  499.      *
  500.      * @return \App\Entity\User
  501.      */
  502.     public function getUser()
  503.     {
  504.         return $this->user;
  505.     }
  506.     /**
  507.      * Add video
  508.      *
  509.      * @param \App\Entity\Video $video
  510.      *
  511.      * @return DisasterDeclaration
  512.      */
  513.     public function addVideo(\App\Entity\Video $video)
  514.     {
  515.         $this->videos[] = $video;
  516.         return $this;
  517.     }
  518.     /**
  519.      * Remove video
  520.      *
  521.      * @param \App\Entity\Video $video
  522.      */
  523.     public function removeVideo(\App\Entity\Video $video)
  524.     {
  525.         $this->videos->removeElement($video);
  526.     }
  527.     /**
  528.      * Get videos
  529.      *
  530.      * @return \Doctrine\Common\Collections\Collection
  531.      */
  532.     public function getVideos()
  533.     {
  534.         return $this->videos;
  535.     }
  536.     /**
  537.      * Add insurance
  538.      *
  539.      * @param \App\Entity\Insurance $insurance
  540.      *
  541.      * @return DisasterDeclaration
  542.      */
  543.     public function addInsurance(\App\Entity\Insurance $insurance)
  544.     {
  545.         $this->insurances[] = $insurance;
  546.         return $this;
  547.     }
  548.     /**
  549.      * Remove insurance
  550.      *
  551.      * @param \App\Entity\Insurance $insurance
  552.      */
  553.     public function removeInsurance(\App\Entity\Insurance $insurance)
  554.     {
  555.         $this->insurances->removeElement($insurance);
  556.     }
  557.     /**
  558.      * Get insurances
  559.      *
  560.      * @return \Doctrine\Common\Collections\Collection
  561.      */
  562.     public function getInsurances()
  563.     {
  564.         return $this->insurances;
  565.     }
  566.     /**
  567.      * Add destroyedDocument
  568.      *
  569.      * @param \App\Entity\Document $destroyedDocument
  570.      *
  571.      * @return DisasterDeclaration
  572.      */
  573.     public function addDestroyedDocument(\App\Entity\Document $destroyedDocument)
  574.     {
  575.         $this->destroyedDocuments[] = $destroyedDocument;
  576.         return $this;
  577.     }
  578.     /**
  579.      * Remove destroyedDocument
  580.      *
  581.      * @param \App\Entity\Document $destroyedDocument
  582.      */
  583.     public function removeDestroyedDocument(\App\Entity\Document $destroyedDocument)
  584.     {
  585.         $this->destroyedDocuments->removeElement($destroyedDocument);
  586.     }
  587.     /**
  588.      * Get destroyedDocuments
  589.      *
  590.      * @return \Doctrine\Common\Collections\Collection
  591.      */
  592.     public function getDestroyedDocuments()
  593.     {
  594.         return $this->destroyedDocuments;
  595.     }
  596.     /**
  597.      * Add destroyedItem
  598.      *
  599.      * @param \App\Entity\Item $destroyedItem
  600.      *
  601.      * @return DisasterDeclaration
  602.      */
  603.     public function addDestroyedItem(\App\Entity\Item $destroyedItem)
  604.     {
  605.         $this->destroyedItems[] = $destroyedItem;
  606.         return $this;
  607.     }
  608.     /**
  609.      * Remove destroyedItem
  610.      *
  611.      * @param \App\Entity\Item $destroyedItem
  612.      */
  613.     public function removeDestroyedItem(\App\Entity\Item $destroyedItem)
  614.     {
  615.         $this->destroyedItems->removeElement($destroyedItem);
  616.     }
  617.     /**
  618.      * Get destroyedItems
  619.      *
  620.      * @return \Doctrine\Common\Collections\Collection
  621.      */
  622.     public function getDestroyedItems()
  623.     {
  624.         return $this->destroyedItems;
  625.     }
  626.     /**
  627.      * Add charge
  628.      *
  629.      * @param \App\Entity\Charge $charge
  630.      *
  631.      * @return DisasterDeclaration
  632.      */
  633.     public function addCharge(\App\Entity\Charge $charge)
  634.     {
  635.         $this->charges[] = $charge;
  636.         return $this;
  637.     }
  638.     /**
  639.      * Remove charge
  640.      *
  641.      * @param \App\Entity\Charge $charge
  642.      */
  643.     public function removeCharge(\App\Entity\Charge $charge)
  644.     {
  645.         $this->charges->removeElement($charge);
  646.     }
  647.     /**
  648.      * Get charges
  649.      *
  650.      * @return \Doctrine\Common\Collections\Collection
  651.      */
  652.     public function getCharges()
  653.     {
  654.         return $this->charges;
  655.     }
  656.     /**
  657.      * Set type
  658.      *
  659.      * @param string $type
  660.      *
  661.      * @return DisasterDeclaration
  662.      */
  663.     public function setType($type)
  664.     {
  665.         $this->type $type;
  666.         return $this;
  667.     }
  668.     /**
  669.      * Get type
  670.      *
  671.      * @return string
  672.      */
  673.     public function getType()
  674.     {
  675.         return $this->type;
  676.     }
  677.     /**
  678.      * Set declarer
  679.      *
  680.      * @param string $declarer
  681.      *
  682.      * @return DisasterDeclaration
  683.      */
  684.     public function setDeclarer($declarer)
  685.     {
  686.         $this->declarer $declarer;
  687.         return $this;
  688.     }
  689.     /**
  690.      * Get declarer
  691.      *
  692.      * @return string
  693.      */
  694.     public function getDeclarer()
  695.     {
  696.         return $this->declarer;
  697.     }
  698.     /**
  699.      * Set houseType
  700.      *
  701.      * @param string $houseType
  702.      *
  703.      * @return DisasterDeclaration
  704.      */
  705.     public function setHouseType($houseType)
  706.     {
  707.         $this->houseType $houseType;
  708.         return $this;
  709.     }
  710.     /**
  711.      * Get houseType
  712.      *
  713.      * @return string
  714.      */
  715.     public function getHouseType()
  716.     {
  717.         return $this->houseType;
  718.     }
  719.     /**
  720.      * Set damagesFound
  721.      *
  722.      * @param string $damagesFound
  723.      *
  724.      * @return DisasterDeclaration
  725.      */
  726.     public function setDamagesFound($damagesFound)
  727.     {
  728.         $this->damagesFound $damagesFound;
  729.         return $this;
  730.     }
  731.     /**
  732.      * Get damagesFound
  733.      *
  734.      * @return string
  735.      */
  736.     public function getDamagesFound()
  737.     {
  738.         return $this->damagesFound;
  739.     }
  740.     /**
  741.      * Add disasterDeclarationPhoto
  742.      *
  743.      * @param \App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto
  744.      *
  745.      * @return DisasterDeclaration
  746.      */
  747.     public function addDisasterDeclarationPhoto(\App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto)
  748.     {
  749.         $this->disasterDeclarationPhotos[] = $disasterDeclarationPhoto;
  750.         $disasterDeclarationPhoto->setDisasterDeclaration($this);
  751.         return $this;
  752.     }
  753.     /**
  754.      * Remove disasterDeclarationPhoto
  755.      *
  756.      * @param \App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto
  757.      */
  758.     public function removeDisasterDeclarationPhoto(\App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto)
  759.     {
  760.         $this->disasterDeclarationPhotos->removeElement($disasterDeclarationPhoto);
  761.     }
  762.     /**
  763.      * Get disasterDeclarationPhotos
  764.      *
  765.      * @return \Doctrine\Common\Collections\Collection
  766.      */
  767.     public function getDisasterDeclarationPhotos()
  768.     {
  769.         return $this->disasterDeclarationPhotos;
  770.     }
  771.     /**
  772.      * Set vehicle
  773.      *
  774.      * @param \App\Entity\Vehicle $vehicle
  775.      *
  776.      * @return DisasterDeclaration
  777.      */
  778.     public function setVehicle(\App\Entity\Vehicle $vehicle null)
  779.     {
  780.         $this->vehicle $vehicle;
  781.         return $this;
  782.     }
  783.     /**
  784.      * Get vehicle
  785.      *
  786.      * @return \App\Entity\Vehicle
  787.      */
  788.     public function getVehicle()
  789.     {
  790.         return $this->vehicle;
  791.     }
  792.     /**
  793.      * Set address
  794.      *
  795.      * @param \App\Entity\Address $address
  796.      *
  797.      * @return DisasterDeclaration
  798.      */
  799.     public function setAddress(\App\Entity\Address $address null)
  800.     {
  801.         $this->address $address;
  802.         return $this;
  803.     }
  804.     /**
  805.      * Get address
  806.      *
  807.      * @return \App\Entity\Address
  808.      */
  809.     public function getAddress()
  810.     {
  811.         return $this->address;
  812.     }
  813.     /**
  814.      * Set parkingPlace
  815.      *
  816.      * @param string $parkingPlace
  817.      *
  818.      * @return DisasterDeclaration
  819.      */
  820.     public function setParkingPlace($parkingPlace)
  821.     {
  822.         $this->parkingPlace $parkingPlace;
  823.         return $this;
  824.     }
  825.     /**
  826.      * Get parkingPlace
  827.      *
  828.      * @return string
  829.      */
  830.     public function getParkingPlace()
  831.     {
  832.         return $this->parkingPlace;
  833.     }
  834.     /**
  835.      * Set brokenWindow
  836.      *
  837.      * @param boolean $brokenWindow
  838.      *
  839.      * @return DisasterDeclaration
  840.      */
  841.     public function setBrokenWindow($brokenWindow)
  842.     {
  843.         $this->brokenWindow $brokenWindow;
  844.         return $this;
  845.     }
  846.     /**
  847.      * Get brokenWindow
  848.      *
  849.      * @return boolean
  850.      */
  851.     public function getBrokenWindow()
  852.     {
  853.         return $this->brokenWindow;
  854.     }
  855.     /**
  856.      * Set isDeleted
  857.      *
  858.      * @param boolean $isDeleted
  859.      *
  860.      * @return DisasterDeclaration
  861.      */
  862.     public function setIsDeleted($isDeleted)
  863.     {
  864.         $this->isDeleted $isDeleted;
  865.         return $this;
  866.     }
  867.     /**
  868.      * Get isDeleted
  869.      *
  870.      * @return boolean
  871.      */
  872.     public function getIsDeleted()
  873.     {
  874.         return $this->isDeleted;
  875.     }
  876.     /**
  877.      * Set secondFactsHour.
  878.      *
  879.      * @param DateTime|null $secondFactsHour
  880.      *
  881.      * @return DisasterDeclaration
  882.      */
  883.     public function setSecondFactsHour($secondFactsHour null)
  884.     {
  885.         $this->secondFactsHour $secondFactsHour;
  886.         return $this;
  887.     }
  888.     /**
  889.      * Get secondFactsHour.
  890.      *
  891.      * @return DateTime|null
  892.      */
  893.     public function getSecondFactsHour()
  894.     {
  895.         return $this->secondFactsHour;
  896.     }
  897.     /**
  898.      * Set damagesMore.
  899.      *
  900.      * @param string|null $damagesMore
  901.      *
  902.      * @return DisasterDeclaration
  903.      */
  904.     public function setDamagesMore($damagesMore null)
  905.     {
  906.         $this->damagesMore $damagesMore;
  907.         return $this;
  908.     }
  909.     /**
  910.      * Get damagesMore.
  911.      *
  912.      * @return string|null
  913.      */
  914.     public function getDamagesMore()
  915.     {
  916.         return $this->damagesMore;
  917.     }
  918.     /**
  919.      * Set parkingPlaceNature.
  920.      *
  921.      * @param string|null $parkingPlaceNature
  922.      *
  923.      * @return DisasterDeclaration
  924.      */
  925.     public function setParkingPlaceNature($parkingPlaceNature null)
  926.     {
  927.         $this->parkingPlaceNature $parkingPlaceNature;
  928.         return $this;
  929.     }
  930.     /**
  931.      * Get parkingPlaceNature.
  932.      *
  933.      * @return string|null
  934.      */
  935.     public function getParkingPlaceNature()
  936.     {
  937.         return $this->parkingPlaceNature;
  938.     }
  939.     /**
  940.      * Set workshop.
  941.      *
  942.      * @param string|null $workshop
  943.      *
  944.      * @return DisasterDeclaration
  945.      */
  946.     public function setWorkshop($workshop null)
  947.     {
  948.         $this->workshop $workshop;
  949.         return $this;
  950.     }
  951.     /**
  952.      * Get workshop.
  953.      *
  954.      * @return string|null
  955.      */
  956.     public function getWorkshop()
  957.     {
  958.         return $this->workshop;
  959.     }
  960.     /**
  961.      * Set nonSavedItem.
  962.      *
  963.      * @param string|null $nonSavedItem
  964.      *
  965.      * @return DisasterDeclaration
  966.      */
  967.     public function setNonSavedItem($nonSavedItem null)
  968.     {
  969.         $this->nonSavedItem $nonSavedItem;
  970.         return $this;
  971.     }
  972.     /**
  973.      * Get nonSavedItem.
  974.      *
  975.      * @return string|null
  976.      */
  977.     public function getNonSavedItem()
  978.     {
  979.         return $this->nonSavedItem;
  980.     }
  981.     /**
  982.      * Set prejudiceEstimate.
  983.      *
  984.      * @param string|null $prejudiceEstimate
  985.      *
  986.      * @return DisasterDeclaration
  987.      */
  988.     public function setPrejudiceEstimate($prejudiceEstimate null)
  989.     {
  990.         $this->prejudiceEstimate $prejudiceEstimate;
  991.         return $this;
  992.     }
  993.     /**
  994.      * Get prejudiceEstimate.
  995.      *
  996.      * @return string|null
  997.      */
  998.     public function getPrejudiceEstimate()
  999.     {
  1000.         return $this->prejudiceEstimate;
  1001.     }
  1002.     /**
  1003.      * Set workshopAddress.
  1004.      *
  1005.      * @param string|null $workshopAddress
  1006.      *
  1007.      * @return DisasterDeclaration
  1008.      */
  1009.     public function setWorkshopAddress($workshopAddress null)
  1010.     {
  1011.         $this->workshopAddress $workshopAddress;
  1012.         return $this;
  1013.     }
  1014.     /**
  1015.      * Get workshopAddress.
  1016.      *
  1017.      * @return string|null
  1018.      */
  1019.     public function getWorkshopAddress()
  1020.     {
  1021.         return $this->workshopAddress;
  1022.     }
  1023.     /**
  1024.      * Set isWorkshop.
  1025.      *
  1026.      * @param bool $isWorkshop
  1027.      *
  1028.      * @return DisasterDeclaration
  1029.      */
  1030.     public function setIsWorkshop($isWorkshop)
  1031.     {
  1032.         $this->isWorkshop $isWorkshop;
  1033.         return $this;
  1034.     }
  1035.     /**
  1036.      * Get isWorkshop.
  1037.      *
  1038.      * @return bool
  1039.      */
  1040.     public function getIsWorkshop()
  1041.     {
  1042.         return $this->isWorkshop;
  1043.     }
  1044.     /**
  1045.      * Set workshopNumber.
  1046.      *
  1047.      * @param string|null $workshopNumber
  1048.      *
  1049.      * @return DisasterDeclaration
  1050.      */
  1051.     public function setWorkshopNumber($workshopNumber null)
  1052.     {
  1053.         $this->workshopNumber $workshopNumber;
  1054.         return $this;
  1055.     }
  1056.     /**
  1057.      * Get workshopNumber.
  1058.      *
  1059.      * @return string|null
  1060.      */
  1061.     public function getWorkshopNumber()
  1062.     {
  1063.         return $this->workshopNumber;
  1064.     }
  1065.     /**
  1066.      * Set disasterOrigin.
  1067.      *
  1068.      * @param string $disasterOrigin
  1069.      *
  1070.      * @return DisasterDeclaration
  1071.      */
  1072.     public function setDisasterOrigin($disasterOrigin)
  1073.     {
  1074.         $this->disasterOrigin $disasterOrigin;
  1075.         return $this;
  1076.     }
  1077.     /**
  1078.      * Get disasterOrigin.
  1079.      *
  1080.      * @return string
  1081.      */
  1082.     public function getDisasterOrigin()
  1083.     {
  1084.         return $this->disasterOrigin;
  1085.     }
  1086.     /**
  1087.      * Set disasterCause.
  1088.      *
  1089.      * @param string $disasterCause
  1090.      *
  1091.      * @return DisasterDeclaration
  1092.      */
  1093.     public function setDisasterCause($disasterCause)
  1094.     {
  1095.         $this->disasterCause $disasterCause;
  1096.         return $this;
  1097.     }
  1098.     /**
  1099.      * Get disasterCause.
  1100.      *
  1101.      * @return string
  1102.      */
  1103.     public function getDisasterCause()
  1104.     {
  1105.         return $this->disasterCause;
  1106.     }
  1107.     /**
  1108.      * Set residentName.
  1109.      *
  1110.      * @param string|null $residentName
  1111.      *
  1112.      * @return DisasterDeclaration
  1113.      */
  1114.     public function setResidentName($residentName null)
  1115.     {
  1116.         $this->residentName $residentName;
  1117.         return $this;
  1118.     }
  1119.     /**
  1120.      * Get residentName.
  1121.      *
  1122.      * @return string|null
  1123.      */
  1124.     public function getResidentName()
  1125.     {
  1126.         return $this->residentName;
  1127.     }
  1128.     /**
  1129.      * Set residentOrigin.
  1130.      *
  1131.      * @param string|null $residentOrigin
  1132.      *
  1133.      * @return DisasterDeclaration
  1134.      */
  1135.     public function setResidentOrigin($residentOrigin null)
  1136.     {
  1137.         $this->residentOrigin $residentOrigin;
  1138.         return $this;
  1139.     }
  1140.     /**
  1141.      * Get residentOrigin.
  1142.      *
  1143.      * @return string|null
  1144.      */
  1145.     public function getResidentOrigin()
  1146.     {
  1147.         return $this->residentOrigin;
  1148.     }
  1149. }