<?php
namespace App\Entity;
use DateTime;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use App\Validator\Constraints as AcmeAssert;
/**
* DisasterDeclaration
*
* @AcmeAssert\DisasterDeclarationNature
*/
#[ORM\Entity(repositoryClass: "App\Repository\DisasterDeclarationRepository")]
#[ORM\Table(name: "disaster_declaration")]
class DisasterDeclaration
{
#[ORM\Column(name: "disasterOrigin", type: "string", length: 255, nullable: true)]
private ?string $disasterOrigin;
#[ORM\Column(name: "disasterCause", type: "string", length: 255, nullable: true)]
private ?string $disasterCause;
#[ORM\Column(name: "residentName", type: "string", length: 255, nullable: true)]
private ?string $residentName;
#[ORM\Column(name: "residentOrigin", type: "string", length: 255, nullable: true)]
private ?string $residentOrigin;
#[ORM\Column(name: "prejudiceEstimate", type: "string", length: 255, nullable: true)]
private ?string $prejudiceEstimate;
#[ORM\Column(type: "text", nullable: true)]
private ?string $nonSavedItem;
#[ORM\Column(type: "boolean", nullable: true)]
private ?bool $isWorkshop;
#[ORM\Column(name: "workshopNumber", type: "string", length: 255, nullable: true)]
private ?string $workshopNumber;
#[ORM\Column(name: "workshop", type: "string", length: 255, nullable: true)]
private ?string $workshop;
#[ORM\Column(name: "workshopAddress", type: "string", length: 255, nullable: true)]
private string $workshopAddress;
#[ORM\Column(type: "boolean")]
private bool $isDeleted = false;
#[ORM\Column(type: "datetime")]
private datetime $createdAt;
#[ORM\OneToMany(targetEntity: DisasterDeclarationPhoto::class, mappedBy: "disasterDeclaration", cascade: ["persist", "remove"])]
private Collection|array $disasterDeclarationPhotos;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $declarer;
#[Assert\Choice(callback: "getHouseTypes", multiple: false)]
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $houseType;
#[ORM\ManyToOne(targetEntity: Vehicle::class, inversedBy: "vehicle")]
#[ORM\JoinColumn(nullable: true)]
private ?Vehicle $vehicle;
#[ORM\ManyToOne(targetEntity: Address::class, inversedBy: "disasterDeclarations")]
#[ORM\JoinColumn(nullable: true)]
private ?Address $address;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $damagesFound;
#[ORM\OneToMany(targetEntity: Charge::class, mappedBy: "disasterDeclaration")]
private Collection|array $charges;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: "disasterDeclarations", cascade: ["persist"])]
#[ORM\JoinColumn(nullable: false)]
private User $user;
#[ORM\ManyToMany(targetEntity: Document::class, inversedBy: "disasterDeclarations")]
private Collection|array $destroyedDocuments;
#[ORM\ManyToMany(targetEntity: Item::class, inversedBy: "disasterDeclarations")]
private Collection|array $destroyedItems;
#[ORM\OneToMany(targetEntity: Video::class, mappedBy: "disasterDeclaration")]
private Collection|array $videos;
#[ORM\ManyToMany(targetEntity: Insurance::class, inversedBy: "disasterDeclarations")]
private Collection|array $insurances;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $parkingPlace;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $parkingPlaceNature;
#[ORM\Column(type: "boolean")]
private bool $brokenWindow = false;
#[Assert\NotBlank(message: 'Ce champ est obligatoire')]
#[Assert\Choice(callback: "getTypes", multiple: false)]
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $type;
#[ORM\Column(name: "damagesMore", type: "text", nullable: true)]
private ?string $damagesMore;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $damagesDescription;
#[ORM\Column(name: "firstFactsDate", type: "date", nullable: true)]
private ?DateTime $firstFactsDate;
#[ORM\Column(name: "secondFactsHour", type: "datetimetz", nullable: true)]
private ?DateTime $secondFactsHour;
#[ORM\Column(name: "disasterAddress", type: "string", length: 255, nullable: true)]
private ?string $disasterAddress;
#[ORM\Column(name: "id", type: "integer")]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "AUTO")]
private ?int $id;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
public function __construct()
{
$this->createdAt = new DateTime();
}
public function __toString()
{
return "#" . $this->id . " - " . $this->createdAt->format("d/m/Y H:i");
}
public static function getHouseTypes()
{
$arr = [
"Maison" => "house",
"Appartement" => "flat",
];
return $arr;
}
public static function getTypes()
{
$arr = [
"Dégats des eaux" => "waterDegradations",
"Incendie" => "fire",
"Grêle" => "hail",
"Inondation" => "flood",
"Tempête" => "storm",
"Foudre" => "ligthning",
];
return $arr;
}
/**
*
*/
public static function getDamagesDescriptions($type, $isVehicule = false)
{
switch ($type) {
case 'waterDegradations':
$arr = [
"Matériel(s) électroménager dégradé(s)",
"Meuble(s) dégradé(s)",
"Moquette dégradée",
"Mur de cuisine dégradés",
"Mur de salle de bain dégradés",
"Parquet dégradé",
"Plafond de cuisine dégradés",
"Plafond de salle de bain dégradés",
"Revétement de sol dégradé",
"Revétement mural dégradé",
];
break;
case 'fire':
if ($isVehicule) {
$arr = [
"Véhicule totalement incendié",
"Véhicule totalement incendié par propagation",
"Véhicule partiellement incendié par propagation sur l’avant",
"Véhicule partiellement incendié par propagation sur l’arrière",
];
} else {
$arr = [
"Appreils électroménager détruits",
"Appreils multimédias détruits",
"Feu de cheminée",
"Feu de cuisine ",
"Local partiellement incendié",
"Local totalement incendié",
"Logement partiellement incendié",
"Logement totalement incendié",
];
}
break;
case 'hail':
if ($isVehicule) {
$arr = [
"Impactes de grêle multiples",
"Véhicule totalement grêlé",
"Parebrise cassé",
"Vitre du hayon arrière cassée",
"Vitre latérale cassée",
];
} else {
$arr = [
"Ardoises cassées",
"Dégradation de la toiture",
"Vitre de fenêtre(s) de toit brisée(s)",
"Fenétre(s) de toit dégradée(s)",
"Goutiéres détruites",
"Mobilier de jardin détruit",
"Toiture de vérenda dégradée",
"Tuiles cassées",
"Vitre(s) brisée(s)",
"Vitre(s) de lucarne(s) de toiture brisée(s)",
"Toiture vitrée de vérenda brisée",
];
}
break;
case 'flood':
if ($isVehicule) {
$arr = [
"Habitacle partiellement inondé",
"Compartiment moteur partiellement inondé",
"Habitacle totalement inondé",
"Compartiment moteur totalement inondé",
"Véhicule totalement submergé",
"Véhicule déplacé par la crue",
];
} else {
$arr = [
"Abri de jardin inondé",
"Cave à vin inondée",
"cave inondée",
"Garage inondé",
"Logement partiellement inondé",
"Logement totalement inondé",
"Rez-de-chaussée inondé",
"Sous sol inondé ",
];
}
break;
case 'storm':
if ($isVehicule) {
$arr = [
"Véhicule dégradé à la suite d'un affaissement de chaussée",
"Véhicule dégradé à la suite d'un affaissement de terrain",
"Véhicule dégradé par des projections de matériaux",
"Véhicule dégradé par des projections de tuiles",
"Véhicule dégradé par des projections de végétaux",
"Véhicule dégradé par l’effondrement d’un batiment",
"Véhicule dégradé par l’effondrement d’un mur",
"Véhicule dégradé par l’effondrement d’une cheminée",
"Véhicule dégradé par une chute d’arbre",
];
} else {
$arr = [
"Abris de jardin dégradé",
"Ardoises cassées",
"Batiment dégradé à la suite d'un affaissement de terrain",
"Batiment dégradé par des projections de matériaux",
"Batiment dégradé par des projections de tuiles",
"Batiment dégradé par des projections de végétaux",
"Batiment dégradé par une chute d’arbre",
"Batiment dégradé par une chute de cheminée",
"Converture de toiture partiellement arrachée",
"Coulée de boue",
"Dégradation de la toiture",
"Effondrement d’un batiment",
"Effondrement d’un mur",
"Effondrement d’une cheminée",
"Fenêtre(s) de toit brisée(s)",
"Fenétres de toit dégradées",
"Goutiéres détruites",
"Isolation de toiture détruite",
"Matériel de jardin détruit",
"Mobilier de jardin détruit",
"Outillage de jardin détruit",
"Piéces d’habitation inondées par les précipitations",
"Serre de jardin détruite",
"Toiture arrachée par la force des vents",
"Toiture de batiment dégradée par une chute d’arbre",
"Toiture de batiment dégradée par une chute de matériaux",
"Toiture de vérenda dégradée par une chute d’arbre",
"Toiture de vérenda dégradée par une chute de matériaux",
"Toiture partiellement arrachée par la force du vent",
"Tuiles cassées",
"Vitre(s) de toiture brisée(s)",
"Vitres brisées",
];
}
break;
case 'ligthning':
if ($isVehicule) {
$arr = [
"Dégradation des systèmes électriques",
"Dégradation des systèmes électroniques",
"Véhicule totalement incendié",
"Véhicule partiellement incendié",
];
} else {
$arr = [
"Destruction d’appareils multimédias",
"Destruction d’appreils electroménager",
"Destruction du circuit électrique ",
"Destruction partielle du circuit électrique",
"Local partiellement incendié",
"Local totalement incendié",
"Logement partiellement incendié",
"Logement totalement incendié",
];
}
break;
}
return array_combine($arr, $arr);
}
public static function getParkingPlaceNatures()
{
$arr = [
"Dans la cour de mon domicile",
"Dans mon garage",
"Dans un box extérieur",
"Dans un box souterrain",
"En mouvement sur la voie publique en zone urbaine",
"En mouvement sur la voie publique hors zone urbaine",
"En mouvement sur une autoroute",
"En mouvement sur une route de campagne",
"En mouvement sur une route urbaine",
"En mouvement sur une voie rapide",
"Sous un abri extérieur ",
"Stationné dans la cour devant mon local",
"Stationné dans la rue de mon domicile",
"Stationné dans la rue devant mon domicile",
"Stationné dans la rue devant mon local",
"Stationné sur la voie publique",
"Stationné sur le parking d’un centre commercial",
"Stationné sur le parking d’un commerce",
"Stationné sur le parking d’une société",
"Stationné sur un emplacement de parking privé extérieur ",
"Stationné sur un emplacement de parking privé souterrain ",
"Stationné sur un emplacement de parking public extérieur ",
"Stationné sur un emplacement de parking public souterrain ",
"Stationné sur un espace privé",
"Stationné sur un espace public ",
"Stationné sur une aire d’autoroute",
"Stationné sur une aire de repos",
"Stationné sur une voie privée",
];
return array_combine($arr, $arr);
}
/**
*
*/
public static function getPrejudiceEstimates()
{
$arr = [
"Inférieure à 500 euros",
"Comprise entre 500 et 1500 euros",
"Comprise entre 1500 et 3000 euros",
"Comprise entre 3000 et 5000 euros",
"Supérieure à 5000 euros",
"Sera déterminée selon le devis des réparations",
];
return array_combine($arr, $arr);
}
/**
*
*/
public static function getDisasterCauses()
{
$arr = [
'Débordement de baignoire',
'Débordement de douche',
'Débordement de lavabo',
'Débordement d\'évier',
'Défaut détanchéité d\'une instalation sanitaire',
'Fuite d\'eau d\'origine indéterminée',
'Fuite d\'un ballon d\'eau chaude',
'Fuite d\'un joint de canalisation',
'Fuite d\'un joint de robinet',
'Fuite provenant d\'une colonne technique',
'Lave linge défectueux',
'Lave vaisselle défectueux',
'Rupture d\'une canalisati,on apparente'
];
return array_combine($arr, $arr);
}
/**
*
*/
public static function getDisasterOrigins()
{
$arr = [
'Mon logement' => 'flat',
'Un logement mitoyen identifié' => 'closeFlat',
'Un logement d\'un étage supérieur identifié' => 'flatTop',
'Un batiment mitoyen identifié' => 'closeBuilding',
'Un logement d\'un étage supérieur non identifié' => 'flatTopUndefined',
'Un logement ou batiment mitoyen non identifié' => 'closeFlatBuildingUndefined',
'Les parties communes de l\'immeuble' => 'communal',
];
return $arr;
}
/**
* Set damagesDescription
*
* @param string $damagesDescription
*
* @return DisasterDeclaration
*/
public function setDamagesDescription($damagesDescription)
{
$this->damagesDescription = $damagesDescription;
return $this;
}
/**
* Get damagesDescription
*
* @return string
*/
public function getDamagesDescription()
{
return $this->damagesDescription;
}
/**
* Set firstFactsDate
*
* @param DateTime $firstFactsDate
*
* @return DisasterDeclaration
*/
public function setFirstFactsDate($firstFactsDate)
{
$this->firstFactsDate = $firstFactsDate;
return $this;
}
/**
* Get firstFactsDate
*
* @return DateTime
*/
public function getFirstFactsDate()
{
return $this->firstFactsDate;
}
/**
* Set secondFactsDate
*
* @param DateTime $secondFactsDate
*
* @return DisasterDeclaration
*/
public function setSecondFactsDate($secondFactsDate)
{
$this->secondFactsDate = $secondFactsDate;
return $this;
}
/**
* Get secondFactsDate
*
* @return DateTime
*/
public function getSecondFactsDate()
{
return $this->secondFactsDate;
}
/**
* Set disasterAddress
*
* @param string $disasterAddress
*
* @return DisasterDeclaration
*/
public function setDisasterAddress($disasterAddress)
{
$this->disasterAddress = $disasterAddress;
return $this;
}
/**
* Get disasterAddress
*
* @return string
*/
public function getDisasterAddress()
{
return $this->disasterAddress;
}
/**
* Set createdAt
*
* @param DateTime $createdAt
*
* @return DisasterDeclaration
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set user
*
* @param \App\Entity\User $user
*
* @return DisasterDeclaration
*/
public function setUser(\App\Entity\User $user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return \App\Entity\User
*/
public function getUser()
{
return $this->user;
}
/**
* Add video
*
* @param \App\Entity\Video $video
*
* @return DisasterDeclaration
*/
public function addVideo(\App\Entity\Video $video)
{
$this->videos[] = $video;
return $this;
}
/**
* Remove video
*
* @param \App\Entity\Video $video
*/
public function removeVideo(\App\Entity\Video $video)
{
$this->videos->removeElement($video);
}
/**
* Get videos
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getVideos()
{
return $this->videos;
}
/**
* Add insurance
*
* @param \App\Entity\Insurance $insurance
*
* @return DisasterDeclaration
*/
public function addInsurance(\App\Entity\Insurance $insurance)
{
$this->insurances[] = $insurance;
return $this;
}
/**
* Remove insurance
*
* @param \App\Entity\Insurance $insurance
*/
public function removeInsurance(\App\Entity\Insurance $insurance)
{
$this->insurances->removeElement($insurance);
}
/**
* Get insurances
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getInsurances()
{
return $this->insurances;
}
/**
* Add destroyedDocument
*
* @param \App\Entity\Document $destroyedDocument
*
* @return DisasterDeclaration
*/
public function addDestroyedDocument(\App\Entity\Document $destroyedDocument)
{
$this->destroyedDocuments[] = $destroyedDocument;
return $this;
}
/**
* Remove destroyedDocument
*
* @param \App\Entity\Document $destroyedDocument
*/
public function removeDestroyedDocument(\App\Entity\Document $destroyedDocument)
{
$this->destroyedDocuments->removeElement($destroyedDocument);
}
/**
* Get destroyedDocuments
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDestroyedDocuments()
{
return $this->destroyedDocuments;
}
/**
* Add destroyedItem
*
* @param \App\Entity\Item $destroyedItem
*
* @return DisasterDeclaration
*/
public function addDestroyedItem(\App\Entity\Item $destroyedItem)
{
$this->destroyedItems[] = $destroyedItem;
return $this;
}
/**
* Remove destroyedItem
*
* @param \App\Entity\Item $destroyedItem
*/
public function removeDestroyedItem(\App\Entity\Item $destroyedItem)
{
$this->destroyedItems->removeElement($destroyedItem);
}
/**
* Get destroyedItems
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDestroyedItems()
{
return $this->destroyedItems;
}
/**
* Add charge
*
* @param \App\Entity\Charge $charge
*
* @return DisasterDeclaration
*/
public function addCharge(\App\Entity\Charge $charge)
{
$this->charges[] = $charge;
return $this;
}
/**
* Remove charge
*
* @param \App\Entity\Charge $charge
*/
public function removeCharge(\App\Entity\Charge $charge)
{
$this->charges->removeElement($charge);
}
/**
* Get charges
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCharges()
{
return $this->charges;
}
/**
* Set type
*
* @param string $type
*
* @return DisasterDeclaration
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set declarer
*
* @param string $declarer
*
* @return DisasterDeclaration
*/
public function setDeclarer($declarer)
{
$this->declarer = $declarer;
return $this;
}
/**
* Get declarer
*
* @return string
*/
public function getDeclarer()
{
return $this->declarer;
}
/**
* Set houseType
*
* @param string $houseType
*
* @return DisasterDeclaration
*/
public function setHouseType($houseType)
{
$this->houseType = $houseType;
return $this;
}
/**
* Get houseType
*
* @return string
*/
public function getHouseType()
{
return $this->houseType;
}
/**
* Set damagesFound
*
* @param string $damagesFound
*
* @return DisasterDeclaration
*/
public function setDamagesFound($damagesFound)
{
$this->damagesFound = $damagesFound;
return $this;
}
/**
* Get damagesFound
*
* @return string
*/
public function getDamagesFound()
{
return $this->damagesFound;
}
/**
* Add disasterDeclarationPhoto
*
* @param \App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto
*
* @return DisasterDeclaration
*/
public function addDisasterDeclarationPhoto(\App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto)
{
$this->disasterDeclarationPhotos[] = $disasterDeclarationPhoto;
$disasterDeclarationPhoto->setDisasterDeclaration($this);
return $this;
}
/**
* Remove disasterDeclarationPhoto
*
* @param \App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto
*/
public function removeDisasterDeclarationPhoto(\App\Entity\DisasterDeclarationPhoto $disasterDeclarationPhoto)
{
$this->disasterDeclarationPhotos->removeElement($disasterDeclarationPhoto);
}
/**
* Get disasterDeclarationPhotos
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDisasterDeclarationPhotos()
{
return $this->disasterDeclarationPhotos;
}
/**
* Set vehicle
*
* @param \App\Entity\Vehicle $vehicle
*
* @return DisasterDeclaration
*/
public function setVehicle(\App\Entity\Vehicle $vehicle = null)
{
$this->vehicle = $vehicle;
return $this;
}
/**
* Get vehicle
*
* @return \App\Entity\Vehicle
*/
public function getVehicle()
{
return $this->vehicle;
}
/**
* Set address
*
* @param \App\Entity\Address $address
*
* @return DisasterDeclaration
*/
public function setAddress(\App\Entity\Address $address = null)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return \App\Entity\Address
*/
public function getAddress()
{
return $this->address;
}
/**
* Set parkingPlace
*
* @param string $parkingPlace
*
* @return DisasterDeclaration
*/
public function setParkingPlace($parkingPlace)
{
$this->parkingPlace = $parkingPlace;
return $this;
}
/**
* Get parkingPlace
*
* @return string
*/
public function getParkingPlace()
{
return $this->parkingPlace;
}
/**
* Set brokenWindow
*
* @param boolean $brokenWindow
*
* @return DisasterDeclaration
*/
public function setBrokenWindow($brokenWindow)
{
$this->brokenWindow = $brokenWindow;
return $this;
}
/**
* Get brokenWindow
*
* @return boolean
*/
public function getBrokenWindow()
{
return $this->brokenWindow;
}
/**
* Set isDeleted
*
* @param boolean $isDeleted
*
* @return DisasterDeclaration
*/
public function setIsDeleted($isDeleted)
{
$this->isDeleted = $isDeleted;
return $this;
}
/**
* Get isDeleted
*
* @return boolean
*/
public function getIsDeleted()
{
return $this->isDeleted;
}
/**
* Set secondFactsHour.
*
* @param DateTime|null $secondFactsHour
*
* @return DisasterDeclaration
*/
public function setSecondFactsHour($secondFactsHour = null)
{
$this->secondFactsHour = $secondFactsHour;
return $this;
}
/**
* Get secondFactsHour.
*
* @return DateTime|null
*/
public function getSecondFactsHour()
{
return $this->secondFactsHour;
}
/**
* Set damagesMore.
*
* @param string|null $damagesMore
*
* @return DisasterDeclaration
*/
public function setDamagesMore($damagesMore = null)
{
$this->damagesMore = $damagesMore;
return $this;
}
/**
* Get damagesMore.
*
* @return string|null
*/
public function getDamagesMore()
{
return $this->damagesMore;
}
/**
* Set parkingPlaceNature.
*
* @param string|null $parkingPlaceNature
*
* @return DisasterDeclaration
*/
public function setParkingPlaceNature($parkingPlaceNature = null)
{
$this->parkingPlaceNature = $parkingPlaceNature;
return $this;
}
/**
* Get parkingPlaceNature.
*
* @return string|null
*/
public function getParkingPlaceNature()
{
return $this->parkingPlaceNature;
}
/**
* Set workshop.
*
* @param string|null $workshop
*
* @return DisasterDeclaration
*/
public function setWorkshop($workshop = null)
{
$this->workshop = $workshop;
return $this;
}
/**
* Get workshop.
*
* @return string|null
*/
public function getWorkshop()
{
return $this->workshop;
}
/**
* Set nonSavedItem.
*
* @param string|null $nonSavedItem
*
* @return DisasterDeclaration
*/
public function setNonSavedItem($nonSavedItem = null)
{
$this->nonSavedItem = $nonSavedItem;
return $this;
}
/**
* Get nonSavedItem.
*
* @return string|null
*/
public function getNonSavedItem()
{
return $this->nonSavedItem;
}
/**
* Set prejudiceEstimate.
*
* @param string|null $prejudiceEstimate
*
* @return DisasterDeclaration
*/
public function setPrejudiceEstimate($prejudiceEstimate = null)
{
$this->prejudiceEstimate = $prejudiceEstimate;
return $this;
}
/**
* Get prejudiceEstimate.
*
* @return string|null
*/
public function getPrejudiceEstimate()
{
return $this->prejudiceEstimate;
}
/**
* Set workshopAddress.
*
* @param string|null $workshopAddress
*
* @return DisasterDeclaration
*/
public function setWorkshopAddress($workshopAddress = null)
{
$this->workshopAddress = $workshopAddress;
return $this;
}
/**
* Get workshopAddress.
*
* @return string|null
*/
public function getWorkshopAddress()
{
return $this->workshopAddress;
}
/**
* Set isWorkshop.
*
* @param bool $isWorkshop
*
* @return DisasterDeclaration
*/
public function setIsWorkshop($isWorkshop)
{
$this->isWorkshop = $isWorkshop;
return $this;
}
/**
* Get isWorkshop.
*
* @return bool
*/
public function getIsWorkshop()
{
return $this->isWorkshop;
}
/**
* Set workshopNumber.
*
* @param string|null $workshopNumber
*
* @return DisasterDeclaration
*/
public function setWorkshopNumber($workshopNumber = null)
{
$this->workshopNumber = $workshopNumber;
return $this;
}
/**
* Get workshopNumber.
*
* @return string|null
*/
public function getWorkshopNumber()
{
return $this->workshopNumber;
}
/**
* Set disasterOrigin.
*
* @param string $disasterOrigin
*
* @return DisasterDeclaration
*/
public function setDisasterOrigin($disasterOrigin)
{
$this->disasterOrigin = $disasterOrigin;
return $this;
}
/**
* Get disasterOrigin.
*
* @return string
*/
public function getDisasterOrigin()
{
return $this->disasterOrigin;
}
/**
* Set disasterCause.
*
* @param string $disasterCause
*
* @return DisasterDeclaration
*/
public function setDisasterCause($disasterCause)
{
$this->disasterCause = $disasterCause;
return $this;
}
/**
* Get disasterCause.
*
* @return string
*/
public function getDisasterCause()
{
return $this->disasterCause;
}
/**
* Set residentName.
*
* @param string|null $residentName
*
* @return DisasterDeclaration
*/
public function setResidentName($residentName = null)
{
$this->residentName = $residentName;
return $this;
}
/**
* Get residentName.
*
* @return string|null
*/
public function getResidentName()
{
return $this->residentName;
}
/**
* Set residentOrigin.
*
* @param string|null $residentOrigin
*
* @return DisasterDeclaration
*/
public function setResidentOrigin($residentOrigin = null)
{
$this->residentOrigin = $residentOrigin;
return $this;
}
/**
* Get residentOrigin.
*
* @return string|null
*/
public function getResidentOrigin()
{
return $this->residentOrigin;
}
}