<?php
namespace App\Entity;
use App\Validator\Constraints as AcmeAssert;
use DateTime;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\Validator\Constraints as Assert;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @Vich\Uploadable
*/
#[ORM\Entity(repositoryClass: "App\Repository\InsuranceRepository")]
#[ORM\Table(name: "insurance")]
class Insurance implements UserObjectInterface
{
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreStreetNumber;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreRoadName;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreZipCode;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreCity;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreStreetNumber;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreRoadName;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreZipCode;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreCity;
#[Assert\Choice(callback: "getRelationTypes", multiple: false)]
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationType = null;
#[ORM\OneToMany(targetEntity: ComplaintLetter::class, mappedBy: "insurance", cascade: ["persist"])]
private Collection|array $complaintLetters;
#[ORM\OneToMany(targetEntity: ComplaintX::class, mappedBy: "insurance", cascade: ["persist", "remove"])]
private Collection|array $complaintXs;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreName;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $relationMoreAddress;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreName;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceMoreAddress;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $companyEmail;
#[ORM\ManyToMany(targetEntity: DisasterDeclaration::class, mappedBy: "insurances", cascade: ["persist"])]
private Collection|array $disasterDeclarations;
#[ORM\Column(name: "createdAt", type: "datetime")]
private ?DateTime $createdAt;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: "insurances", fetch: "EXTRA_LAZY")]
#[ORM\JoinColumn(nullable: false)]
private User $user;
#[ORM\Column(type: "boolean")]
private bool $isDeleted = false;
#[ORM\Column(name: "id", type: "integer")]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "AUTO")]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Item::class, inversedBy: "insurances", fetch: "EXTRA_LAZY")]
#[ORM\JoinColumn(nullable: true)]
private ?Item $item;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $otherContract;
#[ORM\ManyToOne(targetEntity: Vehicle::class, inversedBy: "insurances", fetch: "EXTRA_LAZY")]
#[ORM\JoinColumn(nullable: true)]
private ?Vehicle $vehicle;
#[ORM\ManyToOne(targetEntity: InsuranceCompany::class, inversedBy: "insurances")]
#[ORM\JoinColumn(nullable: true)]
private ?InsuranceCompany $insuranceCompany = null;
#[ORM\ManyToOne(targetEntity: Address::class, inversedBy: "insurance", fetch: "EXTRA_LAZY")]
#[ORM\JoinColumn(nullable: true)]
private ?Address $addressInsurance;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $gmapsAddress;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $city;
#[ORM\Column(name: "zipCode", type: "integer", nullable: true)]
#[Assert\Length(min: 5, max: 5)]
private ?int $zipCode;
#[ORM\Column(name: "streetNumber", type: "integer", nullable: true)]
private ?int $streetNumber;
#[ORM\Column(name: "address", type: "string", length: 255, nullable: true)]
private ?string $address;
#[ORM\Column(name: "contractNumber", type: "string", length: 255, nullable: true)]
private ?string $contractNumber;
#[ORM\Column(name: "deadline", type: "datetime", nullable: true)]
private ?DateTime $deadline;
#[Assert\Email()]
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $contactEmail;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $cptNumber;
/**
* @AcmeAssert\FrenchPhoneNumber
*/
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $contactPhoneNumber;
#[Assert\Choice(callback: "getCategories", multiple: false)]
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $category = null;
#[ORM\Column(name: "brokerageFirmName", type: "string", length: 255, nullable: true)]
private ?string $brokerageFirmName;
#[Assert\Email()]
#[ORM\Column(name: "brokerEmail", type: "string", length: 255, nullable: true)]
private ?string $brokerEmail;
/**
* @Vich\UploadableField(mapping= "insuranceReceipt", fileNameProperty= "insuranceReceiptFileName", size= "insuranceReceiptFileSize")
*/
private ?File $insuranceReceiptFile = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceReceiptFileName = null;
#[ORM\Column(type: "integer", nullable: true)]
private ?int $insuranceReceiptFileSize;
#[ORM\Column(type: "datetime", nullable: true)]
private ?DateTime $insuranceReceiptFileUpdatedAt;
/**
* @Vich\UploadableField(mapping= "insurance", fileNameProperty= "insuranceFileName", size= "insuranceFileSize")
*/
private ?File $insuranceFile = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $insuranceFileName = null;
#[ORM\Column(type: "integer", nullable: true)]
private ?int $insuranceFileSize;
#[ORM\Column(type: "datetime", nullable: true)]
private ?DateTime $insuranceFileUpdatedAt;
#[ORM\Column(length: 255, nullable: true)]
private ?string $companyName = null;
public function __construct()
{
$this->createdAt = new DateTime();
}
public static function getRelationTypes()
{
$arr = [
"Compagnie en direct" => "direct",
"Agent général de la compagnie" => "agent",
"Courtier en assurances" => "broker",
"Société de courtage en assurances" => "brokerCompany"
];
return $arr;
}
public static function getCategories($hasMultiriskMainHouseInsurance = false, ?string $type = null)
{
$arr = [];
if ($type === null || $type === 'address') {
if (!$hasMultiriskMainHouseInsurance) {
$arr["Domicile principal"] = "multiriskMainHouse";
}
$arr["Domicile secondaire"] = "multiriskSecondHouse";
$arr["Autre local"] = "multiriskOtherLocal";
}
if ($type === null || $type === 'vehicle') {
$arr["Véhicule"] = "vehicle";
}
if ($type === null || $type === 'item') {
$arr["Objets"] = "multiriskItems";
$arr["Objets"] = "otherContract";
}
return $arr;
}
/**
* 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|\Symfony\Component\HttpFoundation\File\UploadedFile $image
*/
public function setInsuranceFile(File $image = null)
{
$this->insuranceFile = $image;
if (null !== $image) {
// 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->insuranceFileUpdatedAt = new \DateTime();
}
}
public function getInsuranceFile()
{
return $this->insuranceFile;
}
/**
* 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|\Symfony\Component\HttpFoundation\File\UploadedFile $image
*/
public function setInsuranceReceiptFile(File $image = null)
{
$this->insuranceReceiptFile = $image;
if (null !== $image) {
// 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->insuranceReceiptFileUpdatedAt = new \DateTime();
}
}
public function getInsuranceReceiptFile()
{
return $this->insuranceReceiptFile;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set contractNumber
*
* @param string $contractNumber
*
* @return Insurance
*/
public function setContractNumber($contractNumber)
{
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get contractNumber
*
* @return string
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set deadline
*
* @param DateTime $deadline
*
* @return Insurance
*/
public function setDeadline($deadline)
{
$this->deadline = $deadline;
return $this;
}
/**
* Get deadline
*
* @return DateTime
*/
public function getDeadline()
{
return $this->deadline;
}
/**
* Set category
*
* @param string $category
*
* @return Insurance
*/
public function setCategory($category)
{
$this->category = $category;
return $this;
}
/**
* Get category
*
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* Set brokerageFirmName
*
* @param string $brokerageFirmName
*
* @return Insurance
*/
public function setBrokerageFirmName($brokerageFirmName)
{
$this->brokerageFirmName = $brokerageFirmName;
return $this;
}
/**
* Get brokerageFirmName
*
* @return string
*/
public function getBrokerageFirmName()
{
return $this->brokerageFirmName;
}
/**
* Set brokerEmail
*
* @param string $brokerEmail
*
* @return Insurance
*/
public function setBrokerEmail($brokerEmail)
{
$this->brokerEmail = $brokerEmail;
return $this;
}
/**
* Get brokerEmail
*
* @return string
*/
public function getBrokerEmail()
{
return $this->brokerEmail;
}
/**
* Set createdAt
*
* @param DateTime $createdAt
*
* @return Insurance
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set gmapsAddress
*
* @param string $gmapsAddress
*
* @return Insurance
*/
public function setGmapsAddress($gmapsAddress)
{
$this->gmapsAddress = $gmapsAddress;
return $this;
}
/**
* Get gmapsAddress
*
* @return string
*/
public function getGmapsAddress()
{
return $this->gmapsAddress;
}
/**
* Set city
*
* @param string $city
*
* @return Insurance
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set zipCode
*
* @param integer $zipCode
*
* @return Insurance
*/
public function setZipCode($zipCode)
{
$this->zipCode = $zipCode;
return $this;
}
/**
* Get zipCode
*
* @return integer
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set streetNumber
*
* @param integer $streetNumber
*
* @return Insurance
*/
public function setStreetNumber($streetNumber)
{
$this->streetNumber = $streetNumber;
return $this;
}
/**
* Get streetNumber
*
* @return integer
*/
public function getStreetNumber()
{
return $this->streetNumber;
}
/**
* Set address
*
* @param string $address
*
* @return Insurance
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Set insuranceFileName
*
* @param string $insuranceFileName
*
* @return Insurance
*/
public function setInsuranceFileName($insuranceFileName)
{
$this->insuranceFileName = $insuranceFileName;
return $this;
}
/**
* Get insuranceFileName
*
* @return string
*/
public function getInsuranceFileName()
{
return $this->insuranceFileName;
}
/**
* Set insuranceFileSize
*
* @param integer $insuranceFileSize
*
* @return Insurance
*/
public function setInsuranceFileSize($insuranceFileSize)
{
$this->insuranceFileSize = $insuranceFileSize;
return $this;
}
/**
* Get insuranceFileSize
*
* @return integer
*/
public function getInsuranceFileSize()
{
return $this->insuranceFileSize;
}
/**
* Set insuranceFileUpdatedAt
*
* @param DateTime $insuranceFileUpdatedAt
*
* @return Insurance
*/
public function setInsuranceFileUpdatedAt($insuranceFileUpdatedAt)
{
$this->insuranceFileUpdatedAt = $insuranceFileUpdatedAt;
return $this;
}
/**
* Get insuranceFileUpdatedAt
*
* @return DateTime
*/
public function getInsuranceFileUpdatedAt()
{
return $this->insuranceFileUpdatedAt;
}
/**
* Set user
*
* @param User $user
*
* @return Insurance
*/
public function setUser(User $user)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return User|null
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* Add complaintLetter
*
* @param \App\Entity\ComplaintLetter $complaintLetter
*
* @return Insurance
*/
public function addComplaintLetter(\App\Entity\ComplaintLetter $complaintLetter)
{
$this->complaintLetters[] = $complaintLetter;
return $this;
}
/**
* Remove complaintLetter
*
* @param \App\Entity\ComplaintLetter $complaintLetter
*/
public function removeComplaintLetter(\App\Entity\ComplaintLetter $complaintLetter)
{
$this->complaintLetters->removeElement($complaintLetter);
}
/**
* Get complaintLetters
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getComplaintLetters()
{
return $this->complaintLetters;
}
/**
* Add disasterDeclaration
*
* @param \App\Entity\DisasterDeclaration $disasterDeclaration
*
* @return Insurance
*/
public function addDisasterDeclaration(\App\Entity\DisasterDeclaration $disasterDeclaration)
{
$this->disasterDeclarations[] = $disasterDeclaration;
return $this;
}
/**
* Remove disasterDeclaration
*
* @param \App\Entity\DisasterDeclaration $disasterDeclaration
*/
public function removeDisasterDeclaration(\App\Entity\DisasterDeclaration $disasterDeclaration)
{
$this->disasterDeclarations->removeElement($disasterDeclaration);
}
/**
* Get disasterDeclarations
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDisasterDeclarations()
{
return $this->disasterDeclarations;
}
/**
* Set companyEmail
*
* @param string $companyEmail
*
* @return Insurance
*/
public function setCompanyEmail($companyEmail)
{
$this->companyEmail = $companyEmail;
return $this;
}
/**
* Get companyEmail
*
* @return string
*/
public function getCompanyEmail()
{
return $this->companyEmail;
}
/**
* Set isDeleted
*
* @param boolean $isDeleted
*
* @return Insurance
*/
public function setIsDeleted($isDeleted)
{
$this->isDeleted = $isDeleted;
return $this;
}
/**
* Get isDeleted
*
* @return boolean
*/
public function getIsDeleted()
{
return $this->isDeleted;
}
/**
* Set contactEmail
*
* @param string $contactEmail
*
* @return Insurance
*/
public function setContactEmail($contactEmail)
{
$this->contactEmail = $contactEmail;
return $this;
}
/**
* Get contactEmail
*
* @return string
*/
public function getContactEmail()
{
return $this->contactEmail;
}
/**
* Set cptNumber
*
* @param string $cptNumber
*
* @return Insurance
*/
public function setCptNumber($cptNumber)
{
$this->cptNumber = $cptNumber;
return $this;
}
/**
* Get cptNumber
*
* @return string
*/
public function getCptNumber()
{
return $this->cptNumber;
}
/**
* Set contactPhoneNumber
*
* @param string $contactPhoneNumber
*
* @return Insurance
*/
public function setContactPhoneNumber($contactPhoneNumber)
{
$this->contactPhoneNumber = $contactPhoneNumber;
return $this;
}
/**
* Get contactPhoneNumber
*
* @return string
*/
public function getContactPhoneNumber()
{
return $this->contactPhoneNumber;
}
/**
* Set insuranceReceiptFileName
*
* @param string $insuranceReceiptFileName
*
* @return Insurance
*/
public function setInsuranceReceiptFileName($insuranceReceiptFileName)
{
$this->insuranceReceiptFileName = $insuranceReceiptFileName;
return $this;
}
/**
* Get insuranceReceiptFileName
*
* @return string
*/
public function getInsuranceReceiptFileName()
{
return $this->insuranceReceiptFileName;
}
/**
* Set insuranceReceiptFileSize
*
* @param integer $insuranceReceiptFileSize
*
* @return Insurance
*/
public function setInsuranceReceiptFileSize($insuranceReceiptFileSize)
{
$this->insuranceReceiptFileSize = $insuranceReceiptFileSize;
return $this;
}
/**
* Get insuranceReceiptFileSize
*
* @return integer
*/
public function getInsuranceReceiptFileSize()
{
return $this->insuranceReceiptFileSize;
}
/**
* Set insuranceReceiptFileUpdatedAt
*
* @param DateTime $insuranceReceiptFileUpdatedAt
*
* @return Insurance
*/
public function setInsuranceReceiptFileUpdatedAt($insuranceReceiptFileUpdatedAt)
{
$this->insuranceReceiptFileUpdatedAt = $insuranceReceiptFileUpdatedAt;
return $this;
}
/**
* Get insuranceReceiptFileUpdatedAt
*
* @return DateTime
*/
public function getInsuranceReceiptFileUpdatedAt()
{
return $this->insuranceReceiptFileUpdatedAt;
}
/**
* Set otherContract
*
* @param string $otherContract
*
* @return Insurance
*/
public function setOtherContract($otherContract)
{
$this->otherContract = $otherContract;
return $this;
}
/**
* Get otherContract
*
* @return string
*/
public function getOtherContract()
{
return $this->otherContract;
}
/**
* Add complaintX
*
* @param \App\Entity\ComplaintX $complaintX
*
* @return Insurance
*/
public function addComplaintX(\App\Entity\ComplaintX $complaintX)
{
$this->complaintXs[] = $complaintX;
return $this;
}
/**
* Remove complaintX
*
* @param \App\Entity\ComplaintX $complaintX
*/
public function removeComplaintX(\App\Entity\ComplaintX $complaintX)
{
$this->complaintXs->removeElement($complaintX);
}
/**
* Get complaintXs
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getComplaintXs()
{
return $this->complaintXs;
}
/**
* Set item
*
* @param Item $item
*
* @return Insurance
*/
public function setItem(Item $item = null)
{
$this->item = $item;
return $this;
}
/**
* Get item
*
* @return Item|null
*/
public function getItem(): ?Item
{
return $this->item && $this->item->getIsDeleted() === false ? $this->item : null;
}
/**
* Set vehicle
*
* @param Vehicle $vehicle
*
* @return Insurance
*/
public function setVehicle(Vehicle $vehicle = null)
{
$this->vehicle = $vehicle;
return $this;
}
/**
* Get vehicle
*
* @return Vehicle|null
*/
public function getVehicle(): ?Vehicle
{
return $this->vehicle && $this->vehicle->getIsDeleted() === false ? $this->vehicle : null;
}
/**
* Set relationType.
*
* @param string|null $relationType
*
* @return Insurance
*/
public function setRelationType($relationType = null)
{
$this->relationType = $relationType;
return $this;
}
/**
* Get relationType.
*
* @return string|null
*/
public function getRelationType()
{
return $this->relationType;
}
/**
* Set insuranceMoreName.
*
* @param string|null $insuranceMoreName
*
* @return Insurance
*/
public function setInsuranceMoreName($insuranceMoreName = null)
{
$this->insuranceMoreName = $insuranceMoreName;
return $this;
}
/**
* Get insuranceMoreName.
*
* @return string|null
*/
public function getInsuranceMoreName()
{
return $this->insuranceMoreName;
}
/**
* Set insuranceMoreAddress.
*
* @param string|null $insuranceMoreAddress
*
* @return Insurance
*/
public function setInsuranceMoreAddress($insuranceMoreAddress = null)
{
$this->insuranceMoreAddress = $insuranceMoreAddress;
return $this;
}
/**
* Get insuranceMoreAddress.
*
* @return string|null
*/
public function getInsuranceMoreAddress()
{
return $this->insuranceMoreAddress;
}
/**
* Set relationMoreName.
*
* @param string|null $relationMoreName
*
* @return Insurance
*/
public function setRelationMoreName($relationMoreName = null)
{
$this->relationMoreName = $relationMoreName;
return $this;
}
/**
* Get relationMoreName.
*
* @return string|null
*/
public function getRelationMoreName()
{
return $this->relationMoreName;
}
/**
* Set relationMoreAddress.
*
* @param string|null $relationMoreAddress
*
* @return Insurance
*/
public function setRelationMoreAddress($relationMoreAddress = null)
{
$this->relationMoreAddress = $relationMoreAddress;
return $this;
}
/**
* Get relationMoreAddress.
*
* @return string|null
*/
public function getRelationMoreAddress()
{
return $this->relationMoreAddress;
}
/**
* Set insuranceMoreStreetNumber.
*
* @param string|null $insuranceMoreStreetNumber
*
* @return Insurance
*/
public function setInsuranceMoreStreetNumber($insuranceMoreStreetNumber = null)
{
$this->insuranceMoreStreetNumber = $insuranceMoreStreetNumber;
return $this;
}
/**
* Get insuranceMoreStreetNumber.
*
* @return string|null
*/
public function getInsuranceMoreStreetNumber()
{
return $this->insuranceMoreStreetNumber;
}
/**
* Set insuranceMoreRoadName.
*
* @param string|null $insuranceMoreRoadName
*
* @return Insurance
*/
public function setInsuranceMoreRoadName($insuranceMoreRoadName = null)
{
$this->insuranceMoreRoadName = $insuranceMoreRoadName;
return $this;
}
/**
* Get insuranceMoreRoadName.
*
* @return string|null
*/
public function getInsuranceMoreRoadName()
{
return $this->insuranceMoreRoadName;
}
/**
* Set insuranceMoreZipCode.
*
* @param string|null $insuranceMoreZipCode
*
* @return Insurance
*/
public function setInsuranceMoreZipCode($insuranceMoreZipCode = null)
{
$this->insuranceMoreZipCode = $insuranceMoreZipCode;
return $this;
}
/**
* Get insuranceMoreZipCode.
*
* @return string|null
*/
public function getInsuranceMoreZipCode()
{
return $this->insuranceMoreZipCode;
}
/**
* Set insuranceMoreCity.
*
* @param string|null $insuranceMoreCity
*
* @return Insurance
*/
public function setInsuranceMoreCity($insuranceMoreCity = null)
{
$this->insuranceMoreCity = $insuranceMoreCity;
return $this;
}
/**
* Get insuranceMoreCity.
*
* @return string|null
*/
public function getInsuranceMoreCity()
{
return $this->insuranceMoreCity;
}
/**
* Set insuranceRelationStreetNumber.
*
* @param string|null $insuranceRelationStreetNumber
*
* @return Insurance
*/
public function setInsuranceRelationStreetNumber($insuranceRelationStreetNumber = null)
{
$this->insuranceRelationStreetNumber = $insuranceRelationStreetNumber;
return $this;
}
/**
* Get insuranceRelationStreetNumber.
*
* @return string|null
*/
public function getInsuranceRelationStreetNumber()
{
return $this->insuranceRelationStreetNumber;
}
/**
* Set insuranceRelationRoadName.
*
* @param string|null $insuranceRelationRoadName
*
* @return Insurance
*/
public function setInsuranceRelationRoadName($insuranceRelationRoadName = null)
{
$this->insuranceRelationRoadName = $insuranceRelationRoadName;
return $this;
}
/**
* Get insuranceRelationRoadName.
*
* @return string|null
*/
public function getInsuranceRelationRoadName()
{
return $this->insuranceRelationRoadName;
}
/**
* Set insuranceRelationZipCode.
*
* @param string|null $insuranceRelationZipCode
*
* @return Insurance
*/
public function setInsuranceRelationZipCode($insuranceRelationZipCode = null)
{
$this->insuranceRelationZipCode = $insuranceRelationZipCode;
return $this;
}
/**
* Get insuranceRelationZipCode.
*
* @return string|null
*/
public function getInsuranceRelationZipCode()
{
return $this->insuranceRelationZipCode;
}
/**
* Set insuranceRelationCity.
*
* @param string|null $insuranceRelationCity
*
* @return Insurance
*/
public function setInsuranceRelationCity($insuranceRelationCity = null)
{
$this->insuranceRelationCity = $insuranceRelationCity;
return $this;
}
/**
* Get insuranceRelationCity.
*
* @return string|null
*/
public function getInsuranceRelationCity()
{
return $this->insuranceRelationCity;
}
/**
* Set relationMoreStreetNumber.
*
* @param string|null $relationMoreStreetNumber
*
* @return Insurance
*/
public function setRelationMoreStreetNumber($relationMoreStreetNumber = null)
{
$this->relationMoreStreetNumber = $relationMoreStreetNumber;
return $this;
}
/**
* Get relationMoreStreetNumber.
*
* @return string|null
*/
public function getRelationMoreStreetNumber()
{
return $this->relationMoreStreetNumber;
}
/**
* Set relationMoreRoadName.
*
* @param string|null $relationMoreRoadName
*
* @return Insurance
*/
public function setRelationMoreRoadName($relationMoreRoadName = null)
{
$this->relationMoreRoadName = $relationMoreRoadName;
return $this;
}
/**
* Get relationMoreRoadName.
*
* @return string|null
*/
public function getRelationMoreRoadName()
{
return $this->relationMoreRoadName;
}
/**
* Set relationMoreZipCode.
*
* @param string|null $relationMoreZipCode
*
* @return Insurance
*/
public function setRelationMoreZipCode($relationMoreZipCode = null)
{
$this->relationMoreZipCode = $relationMoreZipCode;
return $this;
}
/**
* Get relationMoreZipCode.
*
* @return string|null
*/
public function getRelationMoreZipCode()
{
return $this->relationMoreZipCode;
}
/**
* Set relationMoreCity.
*
* @param string|null $relationMoreCity
*
* @return Insurance
*/
public function setRelationMoreCity($relationMoreCity = null)
{
$this->relationMoreCity = $relationMoreCity;
return $this;
}
/**
* Get relationMoreCity.
*
* @return string|null
*/
public function getRelationMoreCity()
{
return $this->relationMoreCity;
}
/**
* Set insuranceCompany.
*
* @param \App\Entity\InsuranceCompany|null $insuranceCompany
*
* @return Insurance
*/
public function setInsuranceCompany(\App\Entity\InsuranceCompany $insuranceCompany = null)
{
$this->insuranceCompany = $insuranceCompany;
return $this;
}
/**
* Get insuranceCompany.
*
* @return \App\Entity\InsuranceCompany|null
*/
public function getInsuranceCompany()
{
return $this->insuranceCompany;
}
/**
* Set addressInsurance.
*
* @param Address|null $addressInsurance
*
* @return Insurance
*/
public function setAddressInsurance(Address $addressInsurance = null)
{
$this->addressInsurance = $addressInsurance;
return $this;
}
/**
* Get addressInsurance.
*
* @return Address|null
*/
public function getAddressInsurance(): ?Address
{
return $this->addressInsurance && $this->addressInsurance->getIsDeleted() === false ? $this->addressInsurance : null;
}
public function getCompanyName(): ?string
{
return $this->companyName;
}
public function setCompanyName(?string $companyName): static
{
$this->companyName = $companyName;
return $this;
}
}