<?php
namespace App\Entity;
use App\Mask\MarkingCodesMask;
use Doctrine\ORM\EntityManagerInterface;
use Jsor\Doctrine\PostGIS\Types\PostGISType;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* DnsitTranslateProduct
*
* @ORM\Table(name="dnsit_translate_product",indexes={@ORM\Index(name="dnsit_translate_product_product_text_key_idx", columns={"product_text_key"})})
* @ORM\Entity(repositoryClass="App\Repository\DnsitTranslateProductRepository")
*/
class DnsitTranslateProduct
{
/**
* @var string|null
*
* @ORM\Column(name="product_text_key", type="string", length=255, nullable=true, unique=true)
*/
private $productTextKey;
/**
* @var string|null
*
* @ORM\Column(name="de_name", type="string", length=255, nullable=true)
*/
private $deName;
/**
* @var string|null
*
* @ORM\Column(name="de_slug", type="string", length=255, nullable=true)
*/
private $deSlug;
/**
* @var string|null
*
* @ORM\Column(name="de_comment", type="text", nullable=true)
*/
private $deComment;
/**
* @var string|null
*
* @ORM\Column(name="de_comment1", type="text", nullable=true)
*/
private $deComment1;
/**
* @var string|null
*
* @ORM\Column(name="de_comment2", type="text", nullable=true)
*/
private $deComment2;
/**
* @var string|null
*
* @ORM\Column(name="de_comment_html", type="text", nullable=true)
*/
private $deCommentHtml;
/**
* @var string|null
*
* @ORM\Column(name="de_memo1", type="text", nullable=true)
*/
private $deMemo1;
/**
* @var string|null
*
* @ORM\Column(name="de_memo2", type="text", nullable=true)
*/
private $deMemo2;
/**
* @var string|null
*
* @ORM\Column(name="de_memo3", type="text", nullable=true)
*/
private $deMemo3;
/**
* @var string|null
*
* @ORM\Column(name="de_internal_comment", type="text", nullable=true)
*/
private $deInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="de_documentationf", type="text", nullable=true)
*/
private $deDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="de_documentationl1", type="text", nullable=true)
*/
private $deDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="de_documentationl2", type="text", nullable=true)
*/
private $deDocumentationl2;
/**
* @var string|null
*
* @ORM\Column(name="en_name", type="string", length=255, nullable=true)
*/
private $enName;
/**
* @var string|null
*
* @ORM\Column(name="en_slug", type="string", length=255, nullable=true)
*/
private $enSlug;
/**
* @var string|null
*
* @ORM\Column(name="en_comment", type="text", nullable=true)
*/
private $enComment;
/**
* @var string|null
*
* @ORM\Column(name="en_comment1", type="text", nullable=true)
*/
private $enComment1;
/**
* @var string|null
*
* @ORM\Column(name="en_comment2", type="text", nullable=true)
*/
private $enComment2;
/**
* @var string|null
*
* @ORM\Column(name="en_comment_html", type="text", nullable=true)
*/
private $enCommentHtml;
/**
* @var string|null
*
* @ORM\Column(name="en_memo1", type="text", nullable=true)
*/
private $enMemo1;
/**
* @var string|null
*
* @ORM\Column(name="en_memo2", type="text", nullable=true)
*/
private $enMemo2;
/**
* @var string|null
*
* @ORM\Column(name="en_memo3", type="text", nullable=true)
*/
private $enMemo3;
/**
* @var string|null
*
* @ORM\Column(name="en_internal_comment", type="text", nullable=true)
*/
private $enInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="en_documentationf", type="text", nullable=true)
*/
private $enDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="en_documentationl1", type="text", nullable=true)
*/
private $enDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="en_documentationl2", type="text", nullable=true)
*/
private $enDocumentationl2;
/**
* @var string|null
*
* @ORM\Column(name="es_name", type="string", length=255, nullable=true)
*/
private $esName;
/**
* @var string|null
*
* @ORM\Column(name="es_slug", type="string", length=255, nullable=true)
*/
private $esSlug;
/**
* @var string|null
*
* @ORM\Column(name="es_comment", type="text", nullable=true)
*/
private $esComment;
/**
* @var string|null
*
* @ORM\Column(name="es_comment1", type="text", nullable=true)
*/
private $esComment1;
/**
* @var string|null
*
* @ORM\Column(name="es_comment2", type="text", nullable=true)
*/
private $esComment2;
/**
* @var string|null
*
* @ORM\Column(name="es_comment_html", type="text", nullable=true)
*/
private $esCommentHtml;
/**
* @var string|null
*
* @ORM\Column(name="es_memo1", type="text", nullable=true)
*/
private $esMemo1;
/**
* @var string|null
*
* @ORM\Column(name="es_memo2", type="text", nullable=true)
*/
private $esMemo2;
/**
* @var string|null
*
* @ORM\Column(name="es_memo3", type="text", nullable=true)
*/
private $esMemo3;
/**
* @var string|null
*
* @ORM\Column(name="es_internal_comment", type="text", nullable=true)
*/
private $esInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="es_documentationf", type="text", nullable=true)
*/
private $esDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="es_documentationl1", type="text", nullable=true)
*/
private $esDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="es_documentationl2", type="text", nullable=true)
*/
private $esDocumentationl2;
/**
* @var string|null
*
* @ORM\Column(name="it_name", type="string", length=255, nullable=true)
*/
private $itName;
/**
* @var string|null
*
* @ORM\Column(name="it_slug", type="string", length=255, nullable=true)
*/
private $itSlug;
/**
* @var string|null
*
* @ORM\Column(name="it_comment", type="text", nullable=true)
*/
private $itComment;
/**
* @var string|null
*
* @ORM\Column(name="it_comment1", type="text", nullable=true)
*/
private $itComment1;
/**
* @var string|null
*
* @ORM\Column(name="it_comment2", type="text", nullable=true)
*/
private $itComment2;
/**
* @var string|null
*
* @ORM\Column(name="it_comment_html", type="text", nullable=true)
*/
private $itCommentHtml;
/**
* @var string|null
*
* @ORM\Column(name="it_memo1", type="text", nullable=true)
*/
private $itMemo1;
/**
* @var string|null
*
* @ORM\Column(name="it_memo2", type="text", nullable=true)
*/
private $itMemo2;
/**
* @var string|null
*
* @ORM\Column(name="it_memo3", type="text", nullable=true)
*/
private $itMemo3;
/**
* @var string|null
*
* @ORM\Column(name="it_internal_comment", type="text", nullable=true)
*/
private $itInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="it_documentationf", type="text", nullable=true)
*/
private $itDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="it_documentationl1", type="text", nullable=true)
*/
private $itDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="it_documentationl2", type="text", nullable=true)
*/
private $itDocumentationl2;
/**
* @var string|null
*
* @ORM\Column(name="nl_name", type="string", length=255, nullable=true)
*/
private $nlName;
/**
* @var string|null
*
* @ORM\Column(name="nl_slug", type="string", length=255, nullable=true)
*/
private $nlSlug;
/**
* @var string|null
*
* @ORM\Column(name="nl_comment", type="text", nullable=true)
*/
private $nlComment;
/**
* @var string|null
*
* @ORM\Column(name="nl_comment1", type="text", nullable=true)
*/
private $nlComment1;
/**
* @var string|null
*
* @ORM\Column(name="nl_comment2", type="text", nullable=true)
*/
private $nlComment2;
/**
* @var string|null
*
* @ORM\Column(name="nl_comment_html", type="text", nullable=true)
*/
private $nlCommentHtml;
/**
* @var string|null
*
* @ORM\Column(name="nl_memo1", type="text", nullable=true)
*/
private $nlMemo1;
/**
* @var string|null
*
* @ORM\Column(name="nl_memo2", type="text", nullable=true)
*/
private $nlMemo2;
/**
* @var string|null
*
* @ORM\Column(name="nl_memo3", type="text", nullable=true)
*/
private $nlMemo3;
/**
* @var string|null
*
* @ORM\Column(name="nl_internal_comment", type="text", nullable=true)
*/
private $nlInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="nl_documentationf", type="text", nullable=true)
*/
private $nlDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="nl_documentationl1", type="text", nullable=true)
*/
private $nlDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="nl_documentationl2", type="text", nullable=true)
*/
private $nlDocumentationl2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ptName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ptSlug;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment1;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptCommentHtml;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptMemo1;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptMemo2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptMemo3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptInternalComment;
/**
* @var string|null
*
* @ORM\Column(name="pt_documentationf", type="text", nullable=true)
*/
private $ptDocumentationf;
/**
* @var string|null
*
* @ORM\Column(name="pt_documentationl1", type="text", nullable=true)
*/
private $ptDocumentationl1;
/**
* @var string|null
*
* @ORM\Column(name="pt_documentationl2", type="text", nullable=true)
*/
private $ptDocumentationl2;
/**
* @var int|null
*
* @ORM\Column(name="product_code", type="bigint", nullable=true, unique=true)
*/
private $productCode;
/**
* @var int|null
*
* @ORM\Column(name="product_type_code", type="bigint", nullable=true)
*/
private $productTypeCode;
/**
* @var string|null
*
* @ORM\Column(name="type_name", type="string", nullable=true)
*/
private $typeName;
/**
* @var string|null
*
* @ORM\Column(name="dn_reference", type="string", nullable=true)
*/
private $reference;
/**
* @var float|null
*
* @ORM\Column(name="latitude", type="float", nullable=true)
*/
private $latitude;
/**
* @var float|null
*
* @ORM\Column(name="longitude", type="float", nullable=true)
*/
private $longitude;
/**
* @var int|null
*
* @ORM\Column(name="georef_type", type="integer", nullable=true)
*/
private $georefType;
/**
* @var int|null
*
* @ORM\Column(name="georef", type="integer", nullable=true)
*/
private $georef;
/**
* @var float|null
*
* @ORM\Column(name="distance", type="float", nullable=true)
*/
private $distance;
/**
* @var float|null
*
* @ORM\Column(name="score", type="float", nullable=true)
*/
private $score;
/**
* @var string|null
*
* @ORM\Column(name="location_name", type="string", length=255, nullable=true)
*/
private $locationName;
/**
* @var string|null
*
* @ORM\Column(name="street_num", type="string", length=255, nullable=true)
*/
private $streetNumber;
/**
* @var string|null
*
* @ORM\Column(name="street_name", type="string", length=255, nullable=true)
*/
private $streetName;
/**
* @var string|null
*
* @ORM\Column(name="addition_address", type="string", length=255, nullable=true)
*/
private $additionAddress;
/**
* @var string|null
*
* @ORM\Column(name="special_distribution_address", type="string", length=500, nullable=true)
*/
private $specialDistributionAddress;
/**
* @var string|null
*
* @ORM\Column(name="address", type="string", length=255, nullable=true)
*/
private $address;
/**
* @var string|null
*
* @ORM\Column(name="zip_code", type="string", length=255, nullable=true)
*/
private $zipCode;
/**
* @var string|null
*
* @ORM\Column(name="insee", type="string", nullable=true)
*/
private $insee;
/**
* @var string|null
*
* @ORM\Column(name="city", type="string", length=255, nullable=true)
*/
private $city;
/**
* @var string|null
*
* @ORM\Column(name="country", type="string", length=255, nullable=true)
*/
private $country;
/**
* @var string|null
*
* @ORM\Column(name="phone", type="string", length=255, nullable=true)
*/
private $phone;
/**
* @var string|null
*
* @ORM\Column(name="phone2", type="string", length=255, nullable=true)
*/
private $phone2;
/**
* @var string|null
*
* @ORM\Column(name="phone3", type="string", length=255, nullable=true)
*/
private $phone3;
/**
* @var string|null
*
* @ORM\Column(name="fax", type="string", length=255, nullable=true)
*/
private $fax;
/**
* @var string|null
*
* @ORM\Column(name="email", type="string", length=255, nullable=true)
*/
private $email;
/**
* @var string|null
*
* @ORM\Column(name="email2", type="string", length=2555, nullable=true)
*/
private $email2;
/**
* @var string|null
*
* @ORM\Column(name="url", type="text", nullable=true)
*/
private $url;
/**
* @var string|null
*
* @ORM\Column(name="url2", type="text", nullable=true)
*/
private $url2;
/**
* @var int|null
*
* @ORM\Column(name="entity_manager", type="bigint", nullable=true)
*/
private $entityManager;
/**
* @var int|null
*
* @ORM\Column(name="provider_code", type="bigint", nullable=true)
*/
private $providerCode;
/**
* @var string|null
*
* @ORM\Column(name="provider_text_key", type="text", nullable=true)
*/
private $providerTextKey;
/**
* @var string|null
*
* @ORM\Column(name="provider_name", type="string", length=255, nullable=true)
*/
private $providerName;
/**
* @var string|null
*
* @ORM\Column(name="provider_civility", type="string", length=255, nullable=true)
*/
private $providerCivility;
/**
* @var string|null
*
* @ORM\Column(name="provider_responsible_name", type="string", length=255, nullable=true)
*/
private $providerResponsibleName;
/**
* @var string|null
*
* @ORM\Column(name="provider_responsible_firstname", type="string", length=255, nullable=true)
*/
private $providerResponsibleFirstname;
/**
* @var string|null
*
* @ORM\Column(name="provider_location_name", type="string", length=255, nullable=true)
*/
private $providerLocationName;
/**
* @var string|null
*
* @ORM\Column(name="provider_street_number", type="string", length=255, nullable=true)
*/
private $providerStreetNumber;
/**
* @var string|null
*
* @ORM\Column(name="provider_street_name", type="string", length=255, nullable=true)
*/
private $providerStreetName;
/**
* @var string|null
*
* @ORM\Column(name="provider_addition_address", type="string", length=255, nullable=true)
*/
private $providerAdditionAddress;
/**
* @var string|null
*
* @ORM\Column(name="provider_zip_code", type="string", length=255, nullable=true)
*/
private $providerZipCode;
/**
* @var string|null
*
* @ORM\Column(name="provider_city", type="string", length=255, nullable=true)
*/
private $providerCity;
/**
* @var string|null
*
* @ORM\Column(name="provider_country", type="string", length=255, nullable=true)
*/
private $providerCountry;
/**
* @var string|null
*
* @ORM\Column(name="provider_phone", type="string", length=255, nullable=true)
*/
private $providerPhone;
/**
* @var string|null
*
* @ORM\Column(name="provider_phone2", type="string", length=255, nullable=true)
*/
private $providerPhone2;
/**
* @var string|null
*
* @ORM\Column(name="provider_phone3", type="string", length=255, nullable=true)
*/
private $providerPhone3;
/**
* @var string|null
*
* @ORM\Column(name="provider_fax", type="string", length=255, nullable=true)
*/
private $providerFax;
/**
* @var string|null
*
* @ORM\Column(name="provider_email", type="string", length=255, nullable=true)
*/
private $providerEmail;
/**
* @var string|null
*
* @ORM\Column(name="provider_email2", type="string", length=255, nullable=true)
*/
private $providerEmail2;
/**
* @var string|null
*
* @ORM\Column(name="provider_url", type="string", length=255, nullable=true)
*/
private $providerUrl;
/**
* @var string|null
*
* @ORM\Column(name="provider_url2", type="string", length=255, nullable=true)
*/
private $providerUrl2;
/**
* @var string|null
*
* @ORM\Column(name="provider_special_distribution", type="string", length=255, nullable=true)
*/
private $providerSpecialDistribution;
/**
* @var string|null
*
* @ORM\Column(name="contact_civility", type="string", length=255, nullable=true)
*/
private $contactCivility;
/**
* @var string|null
*
* @ORM\Column(name="contact_lastname", type="string", length=255, nullable=true)
*/
private $contactLastname;
/**
* @var string|null
*
* @ORM\Column(name="contact_firstname", type="string", length=255, nullable=true)
*/
private $contactFirstName;
/**
* @var string|null
*
* @ORM\Column(name="manager_civility", type="string", length=255, nullable=true)
*/
private $managerCivility;
/**
* @var string|null
*
* @ORM\Column(name="manager_lastname", type="string", length=255, nullable=true)
*/
private $managerLastname;
/**
* @var string|null
*
* @ORM\Column(name="manager_firstname", type="string", length=255, nullable=true)
*/
private $managerFirstName;
/**
* @var string|null
*
* @ORM\Column(name="manager_street_number", type="string", length=255, nullable=true)
*/
private $managerStreetNumber;
/**
* @var string|null
*
* @ORM\Column(name="manager_street_name", type="string", length=255, nullable=true)
*/
private $managerStreetName;
/**
* @var string|null
*
* @ORM\Column(name="manager_addition_address", type="string", length=255, nullable=true)
*/
private $managerAdditionAddress;
/**
* @var string|null
*
* @ORM\Column(name="manager_zip_code", type="string", length=255, nullable=true)
*/
private $managerZipCode;
/**
* @var string|null
*
* @ORM\Column(name="manager_city", type="string", length=255, nullable=true)
*/
private $managerCity;
/**
* @var string|null
*
* @ORM\Column(name="manager_country", type="string", length=255, nullable=true)
*/
private $managerCountry;
/**
* @var string|null
*
* @ORM\Column(name="manager_phone", type="string", length=255, nullable=true)
*/
private $managerPhone;
/**
* @var string|null
*
* @ORM\Column(name="manager_phone2", type="string", length=255, nullable=true)
*/
private $managerPhone2;
/**
* @var string|null
*
* @ORM\Column(name="manager_phone3", type="string", length=255, nullable=true)
*/
private $managerPhone3;
/**
* @var string|null
*
* @ORM\Column(name="manager_fax", type="string", length=255, nullable=true)
*/
private $managerFax;
/**
* @var string|null
*
* @ORM\Column(name="manager_email", type="string", length=255, nullable=true)
*/
private $managerEmail;
/**
* @var string|null
*
* @ORM\Column(name="manager_email2", type="string", length=255, nullable=true)
*/
private $managerEmail2;
/**
* @var string|null
*
* @ORM\Column(name="manager_url", type="text", nullable=true)
*/
private $managerUrl;
/**
* @var string|null
*
* @ORM\Column(name="manager_url2", type="text", nullable=true)
*/
private $managerUrl2;
/**
* @var string|null
*
* @ORM\Column(name="manager_special_distribution", type="string", length=255, nullable=true)
*/
private $managerSpecialDistribution;
/**
* @var bool|null
*
* @ORM\Column(name="is_valid", type="boolean", nullable=true)
*/
private $isValid;
/**
* @var \DateTime|null
*
* @ORM\Column(name="valid_from", type="date", nullable=true)
*/
private $validFrom;
/**
* @var \DateTime|null
*
* @ORM\Column(name="valid_to", type="date", nullable=true)
*/
private $validTo;
/**
* @var \DateTime|null
*
* @ORM\Column(name="max_update", type="datetime", nullable=true)
*/
private $maxUpdate;
/**
* @var string|null
*
* @ORM\Column(name="kml", type="text", nullable=true)
*/
private $kml;
/**
*
* @ORM\Column(name="geo_point", type="geometry", options={"geometry_type":"POINT"}, nullable=true)
*/
private $geoPoint;
/**
*
* @ORM\Column(name="geo_linestring", type="geometry", options={"geometry_type":"LINESTRING"}, nullable=true)
*/
private $geoLinestring;
/**
* @var int|null
*
* @ORM\Column(name="entite", type="bigint", nullable=true)
*/
private $entite;
/**
* @var int|null
*
* @ORM\Column(name="marking", type="smallint", nullable=true)
*/
private $marking;
/**
* @var string|null
*
* @ORM\Column(name="params", type="text", nullable=true)
*/
private $params;
/**
* @var \DateTime|null
*
* @ORM\Column(name="created_at", type="datetime", length=45, nullable=true)
*/
private $createdAt;
/**
* @var int|null
*
* @ORM\Column(name="created_by", type="bigint", nullable=true)
*/
private $created_by;
/**
* @var \DateTime|null
*
* @ORM\Column(name="updated_at", type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @var int|null
*
* @ORM\Column(name="updated_by", type="bigint", nullable=true)
*/
private $updatedBy;
/**
* @var int|null
*
* @ORM\Column(name="alea", type="bigint", nullable=true)
*/
private $alea;
/**
* @var string|null
*
* @ORM\Column(name="document", type="text", nullable=true)
*/
private $document;
/**
* @var int
*
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var \App\Entity\DnsitEntity
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitEntity")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
* })
*/
private $productEntity;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitTranslateProductCriterion", mappedBy="product", cascade={"persist","remove"})
*/
private $productCriterions;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitHour", mappedBy="product", cascade={"persist","remove"})
*/
private $hours;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitCoupledProduct", mappedBy="translateProduct", cascade={"persist","remove"})
*/
private $coupledProducts;
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\OneToMany(targetEntity="App\Entity\DnsitCoupledProduct", mappedBy="coupledTranslateProduct", cascade={"persist","remove"})
*/
private $coupledCoupledProducts;
/**
* @var \App\Entity\DnsitTranslateType
*
* @ORM\ManyToOne(targetEntity="App\Entity\DnsitTranslateType")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="type_id", referencedColumnName="id")
* })
*/
private $type;
/**
* @var \App\Entity\CityInsee
*
* @ORM\ManyToOne(targetEntity="App\Entity\CityInsee")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="city_insee_id", referencedColumnName="id")
* })
*/
private $cityInsee;
/**
* @var string
*/
private $comment1;
/**
* @var string
*/
private $comment2;
/**
* @var string
*/
private $commentHtml;
/**
* @var string
*/
private $memo1;
/**
* @var string
*/
private $memo2;
/**
* @var string
*/
private $memo3;
/**
* @ORM\OneToMany(targetEntity="App\Entity\DnsitProductDispo", mappedBy="translateProduct")
*/
private $dispos;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $en_document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $de_document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $it_document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $es_document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nl_document;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $pt_document;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $enUpdatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $deUpdatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $esUpdatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $itUpdatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $nlUpdatedAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $ptUpdatedAt;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $enComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $enComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $enComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $enCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $enCommentHtml3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $deCommentHtml3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $esComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $esComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $esComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $esCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $esCommentHtml3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $itComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $itComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $itComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $itCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $itCommentHtml3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nlComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nlComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nlComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nlCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $nlCommentHtml3;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment7;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment8;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptComment9;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptCommentHtml2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $ptCommentHtml3;
private $name;
/**
* @var string
*/
private $comment;
/**
* @var string
*/
private $internalComment;
/**
* Constructor
*/
public function __construct()
{
$this->productCriterions = new \Doctrine\Common\Collections\ArrayCollection();
$this->hours = new \Doctrine\Common\Collections\ArrayCollection();
$this->coupledProducts = new \Doctrine\Common\Collections\ArrayCollection();
$this->coupledCoupledProducts = new \Doctrine\Common\Collections\ArrayCollection();
$this->dispos = new ArrayCollection();
}
public static function getClassMetadata($resultType = "className", $language = 'fr')
{
switch (strtolower($language)) {
case "fr" :
$className = "DnsitProduct";
$classPath = "\App\Entity\DnsitProduct";
break;
default :
$className = "DnsitTranslateProduct";
$classPath = "\App\Entity\DnsitTranslateProduct";
break;
}
if ($resultType == "className") {
return $className;
} else {
return $classPath;
}
}
public function __toString()
{
return (string)$this->getId();
}
public function getId(): ?int
{
return $this->id;
}
public function getProductTextKey(): ?string
{
return $this->productTextKey;
}
public function setProductTextKey(?string $productTextKey): self
{
$this->productTextKey = $productTextKey;
return $this;
}
public function getProductEntity(): ?DnsitEntity
{
return $this->productEntity;
}
public function setProductEntity(?DnsitEntity $ent): self
{
$this->productEntity = $ent;
return $this;
}
public function getDeName(): ?string
{
return $this->deName;
}
public function setDeName(?string $deName): self
{
$this->deName = $deName;
return $this;
}
public function getDeSlug(): ?string
{
return $this->deSlug;
}
public function setDeSlug(?string $deSlug): self
{
$this->deSlug = $deSlug;
return $this;
}
public function getDeComment(): ?string
{
return $this->deComment;
}
public function setDeComment(?string $deComment): self
{
$this->deComment = $deComment;
return $this;
}
public function getDeComment1(): ?string
{
return $this->deComment1;
}
public function setDeComment1(?string $deComment1): self
{
$this->deComment1 = $deComment1;
return $this;
}
public function getDeComment2(): ?string
{
return $this->deComment2;
}
public function setDeComment2(?string $deComment2): self
{
$this->deComment2 = $deComment2;
return $this;
}
public function getDeCommentHtml(): ?string
{
return $this->deCommentHtml;
}
public function setDeCommentHtml(?string $deCommentHtml): self
{
$this->deCommentHtml = $deCommentHtml;
return $this;
}
public function getDeMemo1(): ?string
{
return $this->deMemo1;
}
public function setDeMemo1(?string $deMemo1): self
{
$this->deMemo1 = $deMemo1;
return $this;
}
public function getDeMemo2(): ?string
{
return $this->deMemo2;
}
public function setDeMemo2(?string $deMemo2): self
{
$this->deMemo2 = $deMemo2;
return $this;
}
public function getDeMemo3(): ?string
{
return $this->deMemo3;
}
public function setDeMemo3(?string $deMemo3): self
{
$this->deMemo3 = $deMemo3;
return $this;
}
public function getDeInternalComment(): ?string
{
return $this->deInternalComment;
}
public function setDeInternalComment(?string $deInternalComment): self
{
$this->deInternalComment = $deInternalComment;
return $this;
}
public function getDeDocumentationf(): ?string
{
return $this->deDocumentationf;
}
public function setDeDocumentationf(?string $dedocumentationf): self
{
$this->deDocumentationf = $dedocumentationf;
return $this;
}
public function getDeDocumentationl1(): ?string
{
return $this->deDocumentationl1;
}
public function setDeDocumentationl1(?string $dedocumentationl1): self
{
$this->deDocumentationl1 = $dedocumentationl1;
return $this;
}
public function getDeDocumentationl2(): ?string
{
return $this->deDocumentationl2;
}
public function setDeDocumentationl2(?string $dedocumentationl2): self
{
$this->deDocumentationl2 = $dedocumentationl2;
return $this;
}
public function getEnName(): ?string
{
return $this->enName;
}
public function setEnName(?string $enName): self
{
$this->enName = $enName;
return $this;
}
public function getEnSlug(): ?string
{
return $this->enSlug;
}
public function setEnSlug(?string $enSlug): self
{
$this->enSlug = $enSlug;
return $this;
}
public function getEnComment(): ?string
{
return $this->enComment;
}
public function setEnComment(?string $enComment): self
{
$this->enComment = $enComment;
return $this;
}
public function getEnComment1(): ?string
{
return $this->enComment1;
}
public function setEnComment1(?string $enComment1): self
{
$this->enComment1 = $enComment1;
return $this;
}
public function getEnComment2(): ?string
{
return $this->enComment2;
}
public function setEnComment2(?string $enComment2): self
{
$this->enComment2 = $enComment2;
return $this;
}
public function getEnCommentHtml(): ?string
{
return $this->enCommentHtml;
}
public function setEnCommentHtml(?string $enCommentHtml): self
{
$this->enCommentHtml = $enCommentHtml;
return $this;
}
public function getEnMemo1(): ?string
{
return $this->enMemo1;
}
public function setEnMemo1(?string $enMemo1): self
{
$this->enMemo1 = $enMemo1;
return $this;
}
public function getEnMemo2(): ?string
{
return $this->enMemo2;
}
public function setEnMemo2(?string $enMemo2): self
{
$this->enMemo2 = $enMemo2;
return $this;
}
public function getEnMemo3(): ?string
{
return $this->enMemo3;
}
public function setEnMemo3(?string $enMemo3): self
{
$this->enMemo3 = $enMemo3;
return $this;
}
public function getEnInternalComment(): ?string
{
return $this->enInternalComment;
}
public function setEnInternalComment(?string $enInternalComment): self
{
$this->enInternalComment = $enInternalComment;
return $this;
}
public function getEnDocumentationf(): ?string
{
return $this->enDocumentationf;
}
public function setEnDocumentationf(?string $endocumentationf): self
{
$this->enDocumentationf = $endocumentationf;
return $this;
}
public function getEnDocumentationl1(): ?string
{
return $this->enDocumentationl1;
}
public function setEnDocumentationl1(?string $endocumentationl1): self
{
$this->enDocumentationl1 = $endocumentationl1;
return $this;
}
public function getEnDocumentationl2(): ?string
{
return $this->enDocumentationl2;
}
public function setEnDocumentationl2(?string $endocumentationl2): self
{
$this->enDocumentationl2 = $endocumentationl2;
return $this;
}
public function getEsName(): ?string
{
return $this->esName;
}
public function setEsName(?string $esName): self
{
$this->esName = $esName;
return $this;
}
public function getEsSlug(): ?string
{
return $this->esSlug;
}
public function setEsSlug(?string $esSlug): self
{
$this->esSlug = $esSlug;
return $this;
}
public function getEsComment(): ?string
{
return $this->esComment;
}
public function setEsComment(?string $esComment): self
{
$this->esComment = $esComment;
return $this;
}
public function getEsComment1(): ?string
{
return $this->esComment1;
}
public function setEsComment1(?string $esComment1): self
{
$this->esComment1 = $esComment1;
return $this;
}
public function getEsComment2(): ?string
{
return $this->esComment2;
}
public function setEsComment2(?string $esComment2): self
{
$this->esComment2 = $esComment2;
return $this;
}
public function getEsCommentHtml(): ?string
{
return $this->esCommentHtml;
}
public function setEsCommentHtml(?string $esCommentHtml): self
{
$this->esCommentHtml = $esCommentHtml;
return $this;
}
public function getEsMemo1(): ?string
{
return $this->esMemo1;
}
public function setEsMemo1(?string $esMemo1): self
{
$this->esMemo1 = $esMemo1;
return $this;
}
public function getEsMemo2(): ?string
{
return $this->esMemo2;
}
public function setEsMemo2(?string $esMemo2): self
{
$this->esMemo2 = $esMemo2;
return $this;
}
public function getEsMemo3(): ?string
{
return $this->esMemo3;
}
public function setEsMemo3(?string $esMemo3): self
{
$this->esMemo3 = $esMemo3;
return $this;
}
public function getEsInternalComment(): ?string
{
return $this->esInternalComment;
}
public function setEsInternalComment(?string $esInternalComment): self
{
$this->esInternalComment = $esInternalComment;
return $this;
}
public function getEsDocumentationf(): ?string
{
return $this->esDocumentationf;
}
public function setEsDocumentationf(?string $esdocumentationf): self
{
$this->esDocumentationf = $esdocumentationf;
return $this;
}
public function getEsDocumentationl1(): ?string
{
return $this->esDocumentationl1;
}
public function setEsDocumentationl1(?string $esdocumentationl1): self
{
$this->esDocumentationl1 = $esdocumentationl1;
return $this;
}
public function getEsDocumentationl2(): ?string
{
return $this->esDocumentationl2;
}
public function setEsDocumentationl2(?string $esdocumentationl2): self
{
$this->esDocumentationl2 = $esdocumentationl2;
return $this;
}
public function getItName(): ?string
{
return $this->itName;
}
public function setItName(?string $itName): self
{
$this->itName = $itName;
return $this;
}
public function getItSlug(): ?string
{
return $this->itSlug;
}
public function setItSlug(?string $itSlug): self
{
$this->itSlug = $itSlug;
return $this;
}
public function getItComment(): ?string
{
return $this->itComment;
}
public function setItComment(?string $itComment): self
{
$this->itComment = $itComment;
return $this;
}
public function getItComment1(): ?string
{
return $this->itComment1;
}
public function setItComment1(?string $itComment1): self
{
$this->itComment1 = $itComment1;
return $this;
}
public function getItComment2(): ?string
{
return $this->itComment2;
}
public function setItComment2(?string $itComment2): self
{
$this->itComment2 = $itComment2;
return $this;
}
public function getItCommentHtml(): ?string
{
return $this->itCommentHtml;
}
public function setItCommentHtml(?string $itCommentHtml): self
{
$this->itCommentHtml = $itCommentHtml;
return $this;
}
public function getItMemo1(): ?string
{
return $this->itMemo1;
}
public function setItMemo1(?string $itMemo1): self
{
$this->itMemo1 = $itMemo1;
return $this;
}
public function getItMemo2(): ?string
{
return $this->itMemo2;
}
public function setItMemo2(?string $itMemo2): self
{
$this->itMemo2 = $itMemo2;
return $this;
}
public function getItMemo3(): ?string
{
return $this->itMemo3;
}
public function setItMemo3(?string $itMemo3): self
{
$this->itMemo3 = $itMemo3;
return $this;
}
public function getItInternalComment(): ?string
{
return $this->itInternalComment;
}
public function setItInternalComment(?string $itInternalComment): self
{
$this->itInternalComment = $itInternalComment;
return $this;
}
public function getItDocumentationf(): ?string
{
return $this->itDocumentationf;
}
public function setItDocumentationf(?string $itdocumentationf): self
{
$this->itDocumentationf = $itdocumentationf;
return $this;
}
public function getItDocumentationl1(): ?string
{
return $this->itDocumentationl1;
}
public function setItDocumentationl1(?string $itdocumentationl1): self
{
$this->itDocumentationl1 = $itdocumentationl1;
return $this;
}
public function getItDocumentationl2(): ?string
{
return $this->itDocumentationl2;
}
public function setItDocumentationl2(?string $itdocumentationl2): self
{
$this->itDocumentationl2 = $itdocumentationl2;
return $this;
}
public function getNlName(): ?string
{
return $this->nlName;
}
public function setNlName(?string $nlName): self
{
$this->nlName = $nlName;
return $this;
}
public function getNlSlug(): ?string
{
return $this->nlSlug;
}
public function setNlSlug(?string $nlSlug): self
{
$this->nlSlug = $nlSlug;
return $this;
}
public function getNlComment(): ?string
{
return $this->nlComment;
}
public function setNlComment(?string $nlComment): self
{
$this->nlComment = $nlComment;
return $this;
}
public function getNlComment1(): ?string
{
return $this->nlComment1;
}
public function setNlComment1(?string $nlComment1): self
{
$this->nlComment1 = $nlComment1;
return $this;
}
public function getNlComment2(): ?string
{
return $this->nlComment2;
}
public function setNlComment2(?string $nlComment2): self
{
$this->nlComment2 = $nlComment2;
return $this;
}
public function getNlCommentHtml(): ?string
{
return $this->nlCommentHtml;
}
public function setNlCommentHtml(?string $nlCommentHtml): self
{
$this->nlCommentHtml = $nlCommentHtml;
return $this;
}
public function getNlMemo1(): ?string
{
return $this->nlMemo1;
}
public function setNlMemo1(?string $nlMemo1): self
{
$this->nlMemo1 = $nlMemo1;
return $this;
}
public function getNlMemo2(): ?string
{
return $this->nlMemo2;
}
public function setNlMemo2(?string $nlMemo2): self
{
$this->nlMemo2 = $nlMemo2;
return $this;
}
public function getNlMemo3(): ?string
{
return $this->nlMemo3;
}
public function setNlMemo3(?string $nlMemo3): self
{
$this->nlMemo3 = $nlMemo3;
return $this;
}
public function getNlInternalComment(): ?string
{
return $this->nlInternalComment;
}
public function setNlInternalComment(?string $nlInternalComment): self
{
$this->nlInternalComment = $nlInternalComment;
return $this;
}
public function getNlDocumentationf(): ?string
{
return $this->nlDocumentationf;
}
public function setNlDocumentationf(?string $nldocumentationf): self
{
$this->nlDocumentationf = $nldocumentationf;
return $this;
}
public function getNlDocumentationl1(): ?string
{
return $this->nlDocumentationl1;
}
public function setNlDocumentationl1(?string $nldocumentationl1): self
{
$this->nlDocumentationl1 = $nldocumentationl1;
return $this;
}
public function getNlDocumentationl2(): ?string
{
return $this->nlDocumentationl2;
}
public function setNlDocumentationl2(?string $nldocumentationl2): self
{
$this->nlDocumentationl2 = $nldocumentationl2;
return $this;
}
public function getPtName(): ?string
{
return $this->ptName;
}
public function setPtName(?string $ptName): self
{
$this->ptName = $ptName;
return $this;
}
public function getPtSlug(): ?string
{
return $this->ptSlug;
}
public function setPtSlug(?string $ptSlug): self
{
$this->ptSlug = $ptSlug;
return $this;
}
public function getPtComment(): ?string
{
return $this->ptComment;
}
public function setPtComment(?string $ptComment): self
{
$this->ptComment = $ptComment;
return $this;
}
public function getPtComment1(): ?string
{
return $this->ptComment1;
}
public function setPtComment1(?string $ptComment1): self
{
$this->ptComment1 = $ptComment1;
return $this;
}
public function getPtComment2(): ?string
{
return $this->ptComment2;
}
public function setPtComment2(?string $ptComment2): self
{
$this->ptComment2 = $ptComment2;
return $this;
}
public function getPtCommentHtml(): ?string
{
return $this->ptCommentHtml;
}
public function setPtCommentHtml(?string $ptCommentHtml): self
{
$this->ptCommentHtml = $ptCommentHtml;
return $this;
}
public function getPtMemo1(): ?string
{
return $this->ptMemo1;
}
public function setPtMemo1(?string $ptMemo1): self
{
$this->ptMemo1 = $ptMemo1;
return $this;
}
public function getPtMemo2(): ?string
{
return $this->ptMemo2;
}
public function setPtMemo2(?string $ptMemo2): self
{
$this->ptMemo2 = $ptMemo2;
return $this;
}
public function getPtMemo3(): ?string
{
return $this->ptMemo3;
}
public function setPtMemo3(?string $ptMemo3): self
{
$this->ptMemo3 = $ptMemo3;
return $this;
}
public function getPtInternalComment(): ?string
{
return $this->ptInternalComment;
}
public function setPtInternalComment(?string $ptInternalComment): self
{
$this->ptInternalComment = $ptInternalComment;
return $this;
}
public function getPtDocumentationf(): ?string
{
return $this->ptDocumentationf;
}
public function setPtDocumentationf(?string $ptdocumentationf): self
{
$this->ptDocumentationf = $ptdocumentationf;
return $this;
}
public function getPtDocumentationl1(): ?string
{
return $this->ptDocumentationl1;
}
public function setPtDocumentationl1(?string $ptdocumentationl1): self
{
$this->ptDocumentationl1 = $ptdocumentationl1;
return $this;
}
public function getPtDocumentationl2(): ?string
{
return $this->ptDocumentationl2;
}
public function setPtDocumentationl2(?string $ptdocumentationl2): self
{
$this->ptDocumentationl2 = $ptdocumentationl2;
return $this;
}
public function getProductCode(): ?int
{
return $this->productCode;
}
public function setProductCode(?int $productCode): self
{
$this->productCode = $productCode;
return $this;
}
public function getProductTypeCode(): ?int
{
return $this->productTypeCode;
}
public function setProductTypeCode(?int $productTypeCode): self
{
$this->productTypeCode = $productTypeCode;
return $this;
}
public function getTypeName(): ?string
{
return $this->typeName;
}
public function setTypeName(?string $typeName): self
{
$this->typeName = $typeName;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getGeorefType(): ?int
{
return $this->georefType;
}
public function setGeorefType(?int $georefType): self
{
$this->georefType = $georefType;
return $this;
}
public function getGeoref(): ?int
{
return $this->georef;
}
public function setGeoref(?int $georef): self
{
$this->georef = $georef;
return $this;
}
public function getDistance(): ?float
{
return $this->distance;
}
public function setDistance(?float $distance): self
{
$this->distance = $distance;
return $this;
}
public function getScore(): ?float
{
return $this->score;
}
public function setScore(?float $score): self
{
$this->score = $score;
return $this;
}
public function getLocationName(): ?string
{
return $this->locationName;
}
public function setLocationName(?string $locationName): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($locationName) && strlen($locationName) > 255)
return $this;
$this->locationName = $locationName;
return $this;
}
public function getStreetNumber(): ?string
{
return $this->streetNumber;
}
public function setStreetNumber(?string $streetNumber): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($streetNumber) && strlen($streetNumber) > 255)
return $this;
$this->streetNumber = $streetNumber;
return $this;
}
public function getStreetName(): ?string
{
return $this->streetName;
}
public function setStreetName(?string $streetName): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($streetName) && strlen($streetName) > 255)
return $this;
$this->streetName = $streetName;
return $this;
}
public function getAdditionAddress(): ?string
{
return $this->additionAddress;
}
public function setAdditionAddress(?string $additionAddress): self
{
$this->additionAddress = $additionAddress;
return $this;
}
public function getSpecialDistributionAddress(): ?string
{
return $this->specialDistributionAddress;
}
public function setSpecialDistributionAddress(?string $specialDistributionAddress): self
{
$this->specialDistributionAddress = $specialDistributionAddress;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getZipCode(): ?string
{
return $this->zipCode;
}
public function setZipCode(?string $zipCode): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($zipCode) && strlen($zipCode) > 255)
return $this;
$this->zipCode = $zipCode;
return $this;
}
public function getInsee(): ?string
{
return $this->insee;
}
public function setInsee(?string $insee): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($insee) && strlen($insee) > 255)
return $this;
$this->insee = $insee;
return $this;
}
public function getCityInsee(): ?CityInsee
{
return $this->cityInsee;
}
public function setCityInsee(?CityInsee $cityInsee): self
{
$this->cityInsee = $cityInsee;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($city) && strlen($city) > 255)
return $this;
$this->city = $city;
return $this;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($country) && strlen($country) > 255)
return $this;
$this->country = $country;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($phone) && strlen($phone) > 255)
return $this;
$this->phone = $phone;
return $this;
}
public function getPhone2(): ?string
{
return $this->phone2;
}
public function setPhone2(?string $phone2): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($phone2) && strlen($phone2) > 255)
return $this;
$this->phone2 = $phone2;
return $this;
}
public function getPhone3(): ?string
{
return $this->phone3;
}
public function setPhone3(?string $phone3): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($phone3) && strlen($phone3) > 255)
return $this;
$this->phone3 = $phone3;
return $this;
}
public function getFax(): ?string
{
return $this->fax;
}
public function setFax(?string $fax): self
{
$this->fax = $fax;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getEmail2(): ?string
{
return $this->email2;
}
public function setEmail2(?string $email2): self
{
$this->email2 = $email2;
return $this;
}
public function getUrl(): ?string
{
return $this->url;
}
public function setUrl(?string $url): self
{
$this->url = $url;
return $this;
}
public function getUrl2(): ?string
{
return $this->url2;
}
public function setUrl2(?string $url2): self
{
$this->url2 = $url2;
return $this;
}
public function getEntityManager(): ?int
{
return $this->entityManager;
}
public function setEntityManager(?int $entityManager): self
{
$this->entityManager = $entityManager;
return $this;
}
public function getProviderCode(): ?int
{
return $this->providerCode;
}
public function setProviderCode(?int $providerCode): self
{
$this->providerCode = $providerCode;
return $this;
}
public function getProviderName(): ?string
{
return $this->providerName;
}
public function setProviderName(?string $providerName): self
{
$this->providerName = $providerName;
return $this;
}
public function getProviderCivility(): ?string
{
return $this->providerCivility;
}
public function setProviderCivility(?string $providerCivility): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerCivility) && strlen($providerCivility) > 255)
return $this;
$this->providerCivility = $providerCivility;
return $this;
}
public function getProviderResponsibleName(): ?string
{
return $this->providerResponsibleName;
}
public function setProviderResponsibleName(?string $providerResponsibleName): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerResponsibleName) && strlen($providerResponsibleName) > 255)
return $this;
$this->providerResponsibleName = $providerResponsibleName;
return $this;
}
public function getProviderResponsibleFirstname(): ?string
{
return $this->providerResponsibleFirstname;
}
public function setProviderResponsibleFirstname(?string $providerResponsibleFirstname): self
{
$this->providerResponsibleFirstname = $providerResponsibleFirstname;
return $this;
}
public function getProviderLocationName(): ?string
{
return $this->providerLocationName;
}
public function setProviderLocationName(?string $providerLocationName): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerLocationName) && strlen($providerLocationName) > 255)
return $this;
$this->providerLocationName = $providerLocationName;
return $this;
}
public function getProviderStreetNumber(): ?string
{
return $this->providerStreetNumber;
}
public function setProviderStreetNumber(?string $providerStreetNumber): self
{
$this->providerStreetNumber = $providerStreetNumber;
return $this;
}
public function getProviderStreetName(): ?string
{
return $this->providerStreetName;
}
public function setProviderStreetName(?string $providerStreetName): self
{
$this->providerStreetName = $providerStreetName;
return $this;
}
public function getProviderAdditionAddress(): ?string
{
return $this->providerAdditionAddress;
}
public function setProviderAdditionAddress(?string $providerAdditionAddress): self
{
$this->providerAdditionAddress = $providerAdditionAddress;
return $this;
}
public function getProviderZipCode(): ?string
{
return $this->providerZipCode;
}
public function setProviderZipCode(?string $providerZipCode): self
{
$this->providerZipCode = $providerZipCode;
return $this;
}
public function getProviderCity(): ?string
{
return $this->providerCity;
}
public function setProviderCity(?string $providerCity): self
{
$this->providerCity = $providerCity;
return $this;
}
public function getProviderCountry(): ?string
{
return $this->providerCountry;
}
public function setProviderCountry(?string $providerCountry): self
{
$this->providerCountry = $providerCountry;
return $this;
}
public function getProviderPhone(): ?string
{
return $this->providerPhone;
}
public function setProviderPhone(?string $providerPhone): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerPhone) && strlen($providerPhone) > 255)
return $this;
$this->providerPhone = $providerPhone;
return $this;
}
public function getProviderPhone2(): ?string
{
return $this->providerPhone2;
}
public function setProviderPhone2(?string $providerPhone2): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerPhone2) && strlen($providerPhone2) > 255)
return $this;
$this->providerPhone2 = $providerPhone2;
return $this;
}
public function getProviderPhone3(): ?string
{
return $this->providerPhone3;
}
public function setProviderPhone3(?string $providerPhone3): self
{
// Patch DN 12/2020 : Touroinsoft ne controle pas la longueur de ses champs !!!
if (!empty($providerPhone3) && strlen($providerPhone3) > 255)
return $this;
$this->providerPhone3 = $providerPhone3;
return $this;
}
public function getProviderFax(): ?string
{
return $this->providerFax;
}
public function setProviderFax(?string $providerFax): self
{
$this->providerFax = $providerFax;
return $this;
}
public function getProviderEmail(): ?string
{
return $this->providerEmail;
}
public function setProviderEmail(?string $providerEmail): self
{
$this->providerEmail = $providerEmail;
return $this;
}
public function getProviderEmail2(): ?string
{
return $this->providerEmail2;
}
public function setProviderEmail2(?string $providerEmail2): self
{
$this->providerEmail2 = $providerEmail2;
return $this;
}
public function getProviderUrl(): ?string
{
return $this->providerUrl;
}
public function setProviderUrl(?string $providerUrl): self
{
$this->providerUrl = $providerUrl;
return $this;
}
public function getProviderUrl2(): ?string
{
return $this->providerUrl2;
}
public function setProviderUrl2(?string $providerUrl2): self
{
$this->providerUrl2 = $providerUrl2;
return $this;
}
public function getProviderSpecialDistribution(): ?string
{
return $this->providerSpecialDistribution;
}
public function setProviderSpecialDistribution(?string $providerSpecialDistribution): self
{
$this->providerSpecialDistribution = $providerSpecialDistribution;
return $this;
}
public function getContactCivility(): ?string
{
return $this->contactCivility;
}
public function setContactCivility(?string $contactCivility): self
{
$this->contactCivility = $contactCivility;
return $this;
}
public function getContactLastname(): ?string
{
return $this->contactLastname;
}
public function setContactLastname(?string $contactLastname): self
{
$this->contactLastname = $contactLastname;
return $this;
}
public function getContactFirstName(): ?string
{
return $this->contactFirstName;
}
public function setContactFirstName(?string $contactFirstName): self
{
$this->contactFirstName = $contactFirstName;
return $this;
}
public function getManagerCivility(): ?string
{
return $this->managerCivility;
}
public function setManagerCivility(?string $managerCivility): self
{
$this->managerCivility = $managerCivility;
return $this;
}
public function getManagerLastname(): ?string
{
return $this->managerLastname;
}
public function setManagerLastname(?string $managerLastname): self
{
$this->managerLastname = $managerLastname;
return $this;
}
public function getManagerFirstName(): ?string
{
return $this->managerFirstName;
}
public function setManagerFirstName(?string $managerFirstName): self
{
$this->managerFirstName = $managerFirstName;
return $this;
}
public function getManagerStreetNumber(): ?string
{
return $this->managerStreetNumber;
}
public function setManagerStreetNumber(?string $managerStreetNumber): self
{
$this->managerStreetNumber = $managerStreetNumber;
return $this;
}
public function getManagerStreetName(): ?string
{
return $this->managerStreetName;
}
public function setManagerStreetName(?string $managerStreetName): self
{
$this->managerStreetName = $managerStreetName;
return $this;
}
public function getManagerAdditionAddress(): ?string
{
return $this->managerAdditionAddress;
}
public function setManagerAdditionAddress(?string $managerAdditionAddress): self
{
$this->managerAdditionAddress = $managerAdditionAddress;
return $this;
}
public function getManagerZipCode(): ?string
{
return $this->managerZipCode;
}
public function setManagerZipCode(?string $managerZipCode): self
{
$this->managerZipCode = $managerZipCode;
return $this;
}
public function getManagerCity(): ?string
{
return $this->managerCity;
}
public function setManagerCity(?string $managerCity): self
{
$this->managerCity = $managerCity;
return $this;
}
public function getManagerCountry(): ?string
{
return $this->managerCountry;
}
public function setManagerCountry(?string $managerCountry): self
{
$this->managerCountry = $managerCountry;
return $this;
}
public function getManagerPhone(): ?string
{
return $this->managerPhone;
}
public function setManagerPhone(?string $managerPhone): self
{
$this->managerPhone = $managerPhone;
return $this;
}
public function getManagerPhone2(): ?string
{
return $this->managerPhone2;
}
public function setManagerPhone2(?string $managerPhone2): self
{
$this->managerPhone2 = $managerPhone2;
return $this;
}
public function getManagerPhone3(): ?string
{
return $this->managerPhone3;
}
public function setManagerPhone3(?string $managerPhone3): self
{
$this->managerPhone3 = $managerPhone3;
return $this;
}
public function getManagerFax(): ?string
{
return $this->managerFax;
}
public function setManagerFax(?string $managerFax): self
{
$this->managerFax = $managerFax;
return $this;
}
public function getManagerEmail(): ?string
{
return $this->managerEmail;
}
public function setManagerEmail(?string $managerEmail): self
{
$this->managerEmail = $managerEmail;
return $this;
}
public function getManagerEmail2(): ?string
{
return $this->managerEmail2;
}
public function setManagerEmail2(?string $managerEmail2): self
{
$this->managerEmail2 = $managerEmail2;
return $this;
}
public function getManagerUrl(): ?string
{
return $this->managerUrl;
}
public function setManagerUrl(?string $managerUrl): self
{
$this->managerUrl = $managerUrl;
return $this;
}
public function getManagerUrl2(): ?string
{
return $this->managerUrl2;
}
public function setManagerUrl2(?string $managerUrl2): self
{
$this->managerUrl2 = $managerUrl2;
return $this;
}
public function getManagerSpecialDistribution(): ?string
{
return $this->managerSpecialDistribution;
}
public function setManagerSpecialDistribution(?string $managerSpecialDistribution): self
{
$this->managerSpecialDistribution = $managerSpecialDistribution;
return $this;
}
public function getIsValid(): ?bool
{
return $this->isValid;
}
public function setIsValid(?bool $isValid): self
{
$this->isValid = $isValid;
return $this;
}
public function getValidFrom(): ?\DateTimeInterface
{
return $this->validFrom;
}
public function setValidFrom(?\DateTimeInterface $validFrom): self
{
$this->validFrom = $validFrom;
return $this;
}
public function getValidTo(): ?\DateTimeInterface
{
return $this->validTo;
}
public function setValidTo(?\DateTimeInterface $validTo): self
{
$this->validTo = $validTo;
return $this;
}
public function getMaxUpdate(): ?\DateTimeInterface
{
return $this->maxUpdate;
}
public function setMaxUpdate(?\DateTimeInterface $maxUpdate): self
{
$this->maxUpdate = $maxUpdate;
return $this;
}
public function getKml(): ?string
{
return $this->kml;
}
public function setKml(?string $kml): self
{
$this->kml = $kml;
return $this;
}
public function getGeoPoint()
{
return $this->geoPoint;
}
public function setGeoPoint($geoPoint): self
{
$this->geoPoint = $geoPoint;
return $this;
}
public function getGeoLinestring()
{
return $this->geoLinestring;
}
public function setGeoLinestring($geoLinestring): self
{
$this->geoLinestring = $geoLinestring;
return $this;
}
public function getEntite(): ?int
{
return $this->entite;
}
public function setEntite(?int $entite): self
{
$this->entite = $entite;
return $this;
}
public function getMarking(): ?int
{
return $this->marking;
}
public function setMarking(?int $marking): self
{
$this->marking = $marking;
return $this;
}
public function getParams(): ?string
{
return $this->params;
}
public function setParams(?string $params): self
{
$this->params = $params;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(?\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getCreatedBy(): ?int
{
return $this->created_by;
}
public function setCreatedBy(?int $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getUpdatedBy(): ?int
{
return $this->updatedBy;
}
public function setUpdatedBy(?int $updatedBy): self
{
$this->updatedBy = $updatedBy;
return $this;
}
public function getAlea(): ?int
{
return $this->alea;
}
public function setAlea(?int $alea): self
{
$this->alea = $alea;
return $this;
}
public function getDocument(): ?string
{
return $this->document;
}
public function setDocument(?string $document): self
{
$this->document = $document;
return $this;
}
/**
* @return Collection|DnsitTranslateProductCriterion[]
*/
public function getProductCriterions(): Collection
{
return $this->productCriterions;
}
public function addProductCriterion(DnsitTranslateProductCriterion $productCriterion): self
{
if (!$this->productCriterions->contains($productCriterion)) {
$this->productCriterions[] = $productCriterion;
$productCriterion->setProduct($this);
}
return $this;
}
public function removeProductCriterion(DnsitTranslateProductCriterion $productCriterion): self
{
if ($this->productCriterions->contains($productCriterion)) {
$this->productCriterions->removeElement($productCriterion);
// set the owning side to null (unless already changed)
if ($productCriterion->getProduct() === $this) {
$productCriterion->setProduct(null);
}
}
return $this;
}
/**
* @return Collection|DnsitHour[]
*/
public function getHours(): Collection
{
return $this->hours;
}
public function addHour(DnsitHour $hour): self
{
if (!$this->hours->contains($hour)) {
$this->hours[] = $hour;
$hour->setProduct($this);
}
return $this;
}
public function removeHour(DnsitHour $hour): self
{
if ($this->hours->contains($hour)) {
$this->hours->removeElement($hour);
// set the owning side to null (unless already changed)
if ($hour->getProduct() === $this) {
$hour->setProduct(null);
}
}
return $this;
}
/**
* @return Collection|DnsitCoupledProduct[]
*/
public function getCoupledProducts(): Collection
{
return $this->coupledProducts;
}
public function addCoupledProduct(DnsitCoupledProduct $coupledProduct): self
{
if (!$this->coupledProducts->contains($coupledProduct)) {
$this->coupledProducts[] = $coupledProduct;
$coupledProduct->setTranslateProduct($this);
}
return $this;
}
public function removeCoupledProduct(DnsitCoupledProduct $coupledProduct): self
{
if ($this->coupledProducts->contains($coupledProduct)) {
$this->coupledProducts->removeElement($coupledProduct);
// set the owning side to null (unless already changed)
if ($coupledProduct->getTranslateProduct() === $this) {
$coupledProduct->setTranslateProduct(null);
}
}
return $this;
}
/**
* @return Collection|DnsitCoupledProduct[]
*/
public function getCoupledCoupledProducts(): Collection
{
return $this->coupledCoupledProducts;
}
public function addCoupledCoupledProduct(DnsitCoupledProduct $coupledCoupledProduct): self
{
if (!$this->coupledCoupledProducts->contains($coupledCoupledProduct)) {
$this->coupledCoupledProducts[] = $coupledCoupledProduct;
$coupledCoupledProduct->setCoupledTranslateProduct($this);
}
return $this;
}
public function removeCoupledCoupledProduct(DnsitCoupledProduct $coupledCoupledProduct): self
{
if ($this->coupledCoupledProducts->contains($coupledCoupledProduct)) {
$this->coupledCoupledProducts->removeElement($coupledCoupledProduct);
// set the owning side to null (unless already changed)
if ($coupledCoupledProduct->getCoupledTranslateProduct() === $this) {
$coupledCoupledProduct->setCoupledTranslateProduct(null);
}
}
return $this;
}
public function getType(): ?DnsitTranslateType
{
return $this->type;
}
public function setType(?DnsitTranslateType $type): self
{
$this->type = $type;
return $this;
}
public function bindLeiDatas($fiche, $type = null, $language = "fr", $product = null, $em = null)
{
$columns = array();
$values = array();
if (isset($product)) {
$this->setName($product['de_name'], "de");
$this->setName($product['en_name'], "en");
$this->setName($product['it_name'], "it");
$this->setName($product['es_name'], "es");
$this->setName($product['nl_name'], "nl");
$this->setName($product['pt_name'], "pt");
$this->setComment($product['de_comment'], "de");
$this->setComment($product['en_comment'], "en");
$this->setComment($product['it_comment'], "it");
$this->setComment($product['es_comment'], "es");
$this->setComment($product['nl_comment'], "nl");
$this->setComment($product['pt_comment'], "pt");
$this->setComment1($product['de_comment1'], "de");
$this->setComment1($product['en_comment1'], "en");
$this->setComment1($product['it_comment1'], "it");
$this->setComment1($product['es_comment1'], "es");
$this->setComment1($product['nl_comment1'], "nl");
$this->setComment1($product['pt_comment1'], "pt");
$this->setComment2($product['de_comment2'], "de");
$this->setComment2($product['en_comment2'], "en");
$this->setComment2($product['it_comment2'], "it");
$this->setComment2($product['es_comment2'], "es");
$this->setComment2($product['nl_comment2'], "nl");
$this->setComment2($product['pt_comment2'], "pt");
$this->setComment3($product['de_comment3'], "de");
$this->setComment3($product['en_comment3'], "en");
$this->setComment3($product['it_comment3'], "it");
$this->setComment3($product['es_comment3'], "es");
$this->setComment3($product['nl_comment3'], "nl");
$this->setComment3($product['pt_comment3'], "pt");
$this->setComment7($product['de_comment7'], "de");
$this->setComment7($product['en_comment7'], "en");
$this->setComment7($product['it_comment7'], "it");
$this->setComment7($product['es_comment7'], "es");
$this->setComment7($product['nl_comment7'], "nl");
$this->setComment7($product['pt_comment7'], "pt");
$this->setComment8($product['de_comment8'], "de");
$this->setComment8($product['en_comment8'], "en");
$this->setComment8($product['it_comment8'], "it");
$this->setComment8($product['es_comment8'], "es");
$this->setComment8($product['nl_comment8'], "nl");
$this->setComment8($product['pt_comment8'], "pt");
$this->setComment9($product['de_comment9'], "de");
$this->setComment9($product['en_comment9'], "en");
$this->setComment9($product['it_comment9'], "it");
$this->setComment9($product['es_comment9'], "es");
$this->setComment9($product['nl_comment9'], "nl");
$this->setComment9($product['pt_comment9'], "pt");
$this->setCommentHtml($product['de_comment_html'], "de");
$this->setCommentHtml($product['en_comment_html'], "en");
$this->setCommentHtml($product['it_comment_html'], "it");
$this->setCommentHtml($product['es_comment_html'], "es");
$this->setCommentHtml($product['nl_comment_html'], "nl");
$this->setCommentHtml($product['pt_comment_html'], "pt");
$this->setCommentHtml2($product['de_comment_html2'], "de");
$this->setCommentHtml2($product['en_comment_html2'], "en");
$this->setCommentHtml2($product['it_comment_html2'], "it");
$this->setCommentHtml2($product['es_comment_html2'], "es");
$this->setCommentHtml2($product['nl_comment_html2'], "nl");
$this->setCommentHtml2($product['pt_comment_html2'], "pt");
$this->setCommentHtml3($product['de_comment_html3'], "de");
$this->setCommentHtml3($product['en_comment_html3'], "en");
$this->setCommentHtml3($product['it_comment_html3'], "it");
$this->setCommentHtml3($product['es_comment_html3'], "es");
$this->setCommentHtml3($product['nl_comment_html3'], "nl");
$this->setCommentHtml3($product['pt_comment_html3'], "pt");
$this->setInternalComment($product['de_internal_comment'], "de");
$this->setInternalComment($product['en_internal_comment'], "en");
$this->setInternalComment($product['it_internal_comment'], "it");
$this->setInternalComment($product['es_internal_comment'], "es");
$this->setInternalComment($product['nl_internal_comment'], "nl");
$this->setInternalComment($product['pt_internal_comment'], "pt");
$this->setDocumentationf($product['de_documentationf'], 'de');
$this->setDocumentationf($product['en_documentationf'], 'en');
$this->setDocumentationf($product['es_documentationf'], 'es');
$this->setDocumentationf($product['it_documentationf'], 'it');
$this->setDocumentationf($product['nl_documentationf'], 'nl');
$this->setDocumentationf($product['pt_documentationf'], 'pt');
$this->setDocumentationl1($product['de_documentationl1'], 'de');
$this->setDocumentationl1($product['en_documentationl1'], 'en');
$this->setDocumentationl1($product['es_documentationl1'], 'es');
$this->setDocumentationl1($product['it_documentationl1'], 'it');
$this->setDocumentationl1($product['nl_documentationl1'], 'nl');
$this->setDocumentationl1($product['pt_documentationl1'], 'pt');
$this->setDocumentationl2($product['de_documentationl2'], 'de');
$this->setDocumentationl2($product['en_documentationl2'], 'en');
$this->setDocumentationl2($product['es_documentationl2'], 'es');
$this->setDocumentationl2($product['it_documentationl2'], 'it');
$this->setDocumentationl2($product['nl_documentationl2'], 'nl');
$this->setDocumentationl2($product['pt_documentationl2'], 'pt');
$this->setMemo1($product['de_memo1'], "de");
$this->setMemo1($product['en_memo1'], "en");
$this->setMemo1($product['it_memo1'], "it");
$this->setMemo1($product['es_memo1'], "es");
$this->setMemo1($product['nl_memo1'], "nl");
$this->setMemo1($product['pt_memo1'], "pt");
$this->setMemo2($product['de_memo2'], "de");
$this->setMemo2($product['en_memo2'], "en");
$this->setMemo2($product['it_memo2'], "it");
$this->setMemo2($product['es_memo2'], "es");
$this->setMemo2($product['nl_memo2'], "nl");
$this->setMemo2($product['pt_memo2'], "pt");
$this->setMemo3($product['de_memo3'], "de");
$this->setMemo3($product['en_memo3'], "en");
$this->setMemo3($product['it_memo3'], "it");
$this->setMemo3($product['es_memo3'], "es");
$this->setMemo3($product['nl_memo3'], "nl");
$this->setMemo3($product['pt_memo3'], "pt");
}
if ((integer)$fiche->PRODUIT) {
$columns[] = "product_code";
$values[] = (integer)$fiche->PRODUIT;
$this->setProductCode((integer)$fiche->PRODUIT);
}
$longitude = str_replace(",", ".", $fiche->LONGITUDE);
$latitude = str_replace(",", ".", $fiche->LATITUDE);
if (abs((float)$longitude) >= 0 && abs((float)$longitude) <= 180 && abs((float)$latitude) >= 0 && abs((float)$latitude) < 90) {
$columns[] = "latitude";
$values[] = (float)$latitude;
$columns[] = "longitude";
$values[] = (float)$longitude;
$this->setLongitude((float)$longitude);
$this->setLatitude((float)$latitude);
//$point = new \LongitudeOne\Spatial\PHP\Types\Geometry\Point($this->getLatitude(), $this->getLongitude());
// $point->setSrid("4326");
//$this->setGeoPoint($point);
$this->setGeoPoint('SRID=4326;POINT(' . $this->getLongitude() . ' ' . $this->getLatitude() . ')');
$columns[] = "geo_point";
$values[] = "ST_GeomFromText('Point(" . (float)$latitude . " " . (float)$longitude . ")',4326)";
}
$this->setName((string)$fiche->NOM, $language);
$columns[] = $language . "_name";
$values[] = (string)$fiche->NOM;
$columns[] = "address";
$values[] = (string)$fiche->ADRESSE;
$this->setAddress((string)$fiche->ADRESSE);
$columns[] = "street_num";
$values[] = (string)$fiche->ADRPROD_NUM_VOIE;
$this->setStreetNumber((string)$fiche->ADRPROD_NUM_VOIE);
$columns[] = "street_name";
$values[] = (string)$fiche->ADRPROD_LIB_VOIE;
$this->setStreetName((string)$fiche->ADRPROD_LIB_VOIE);
$columns[] = "addition_address";
$values[] = (string)$fiche->ADRPROD_COMPL_ADRESSE;
$this->setAdditionAddress((string)$fiche->ADRPROD_COMPL_ADRESSE);
$columns[] = "special_distribution_address";
$values[] = (string)$fiche->ADRPROD_DISTRI_SPE;
$this->setSpecialDistributionAddress((string)$fiche->ADRPROD_DISTRI_SPE);
$columns[] = "zip_code";
$values[] = (string)$fiche->ADRPROD_CP;
$this->setZipCode((string)$fiche->ADRPROD_CP);
$columns[] = "insee";
$values[] = (string)$fiche->INSEE;
$this->setInsee((string)$fiche->INSEE);
$columns[] = "city";
$values[] = (string)$fiche->ADRPROD_LIBELLE_COMMUNE;
$this->setCity((string)$fiche->ADRPROD_LIBELLE_COMMUNE);
$columns[] = "country";
$values[] = (string)$fiche->ADRPROD_PAYS;
$this->setCountry((string)$fiche->ADRPROD_PAYS);
if ((integer)$fiche->GEOREF) {
$columns[] = "georef";
$values[] = (string)$fiche->GEOREF;
$this->setGeoref((integer)$fiche->GEOREF);
}
if ((integer)$fiche->GEOREFTYPE) {
$columns[] = "georef_type";
$values[] = (string)$fiche->GEOREFTYPE;
$this->setGeorefType((integer)$fiche->GEOREFTYPE);
}
$columns[] = "email";
$values[] = (string)$fiche->ADRPROD_EMAIL;
$this->setEmail((string)$fiche->ADRPROD_EMAIL);
$columns[] = "email2";
$values[] = (string)$fiche->ADRPROD_EMAIL2;
$this->setEmail2((string)$fiche->ADRPROD_EMAIL2);
$columns[] = "phone";
$values[] = (string)$fiche->ADRPROD_TEL;
$this->setPhone((string)$fiche->ADRPROD_TEL);
$columns[] = "phone2";
$values[] = (string)$fiche->ADRPROD_TEL2;
$this->setPhone2((string)$fiche->ADRPROD_TEL2);
$columns[] = "phone3";
$values[] = (string)$fiche->ADRPROD_TEL3;
$this->setPhone3((string)$fiche->ADRPROD_TEL3);
$columns[] = "url";
$values[] = (string)$fiche->ADRPROD_URL;
$this->setUrl((string)$fiche->ADRPROD_URL);
$columns[] = "url2";
$values[] = (string)$fiche->ADRPROD_URL2;
$this->setUrl2((string)$fiche->ADRPROD_URL2);
$columns[] = $language . "_comment";
$values[] = (string)$fiche->COMMENTAIRE;
$this->setComment((string)$fiche->COMMENTAIRE, $language);
$columns[] = $language . "_comment1";
$values[] = (string)$fiche->COMMENTAIREL1;
$this->setComment1((string)$fiche->COMMENTAIREL1, $language);
$columns[] = $language . "_comment2";
$values[] = (string)$fiche->COMMENTAIREL2;
$this->setComment2((string)$fiche->COMMENTAIREL2, $language);
$columns[] = $language . "_comment7";
$values[] = (string)$fiche->COMMENTAIRE7;
$this->setComment7((string)$fiche->COMMENTAIRE7, $language);
$columns[] = $language . "_comment8";
$values[] = (string)$fiche->COMMENTAIRE8;
$this->setComment8((string)$fiche->COMMENTAIRE8, $language);
$columns[] = $language . "_comment9";
$values[] = (string)$fiche->COMMENTAIRE9;
$this->setComment9((string)$fiche->COMMENTAIRE9, $language);
$columns[] = $language . "_comment_html";
$values[] = (string)$fiche->COMMENTAIREHTML;
$this->setCommentHtml((string)$fiche->COMMENTAIREHTML, $language);
$columns[] = $language . "_comment_html2";
$values[] = (string)$fiche->COMMENTAIREHTML2;
$this->setCommentHtml2((string)$fiche->COMMENTAIREHTML2, $language);
$columns[] = $language . "_comment_html3";
$values[] = (string)$fiche->COMMENTAIREHTML3;
$this->setCommentHtml3((string)$fiche->COMMENTAIREHTML3, $language);
$columns[] = $language . "_internal_comment";
$values[] = (string)$fiche->COMMENTAIREINTERNE;
$this->setInternalComment((string)$fiche->COMMENTAIREINTERNE, $language);
$columns[] = $language . "_documentationf";
$values[] = (string)$fiche->DOCUMENTATIONF;
$this->setDocumentationf((string)$fiche->DOCUMENTATIONF, $language);
$columns[] = $language . "_documentationl1";
$values[] = (string)$fiche->DOCUMENTATIONL1;
$this->setDocumentationl1((string)$fiche->DOCUMENTATIONL1, $language);
$columns[] = $language . "_documentationl2";
$values[] = (string)$fiche->DOCUMENTATIONL2;
$this->setDocumentationl2((string)$fiche->DOCUMENTATIONL2, $language);
$columns[] = $language . "_memo1";
$values[] = (string)$fiche->MEMO1;
$this->setMemo1((string)$fiche->MEMO1, $language);
$columns[] = $language . "_memo2";
$values[] = (string)$fiche->MEMO2;
$this->setMemo2((string)$fiche->MEMO2, $language);
$columns[] = $language . "_memo3";
$values[] = (string)$fiche->MEMO3;
$this->setMemo3((string)$fiche->MEMO3, $language);
$this->setProviderCivility((string)$fiche->PREST_CIVILITE);
$this->setProviderResponsibleFirstname((string)$fiche->PREST_PRENOM_RESP);
$this->setProviderResponsibleName((string)$fiche->PREST_NOM_RESP);
$this->setProviderName((string)$fiche->PREST_NOM);
$this->setProviderStreetNumber((string)$fiche->ADRPREST_NUM_VOIE);
$this->setProviderStreetName((string)$fiche->ADRPREST_LIB_VOIE);
$this->setProviderAdditionAddress((string)$fiche->ADRPREST_COMPL_ADRESSE);
$this->setProviderZipCode((string)$fiche->ADRPREST_CP);
$this->setProviderCity((string)$fiche->ADRPREST_LIBELLE_COMMUNE);
$this->setProviderCountry((string)$fiche->ADRPREST_PAYS);
$this->setProviderPhone((string)$fiche->ADRPREST_TEL);
$this->setProviderPhone2((string)$fiche->ADRPREST_TEL2);
$this->setProviderPhone3((string)$fiche->ADRPREST_TEL3);
$this->setProviderEmail((string)$fiche->ADRPREST_EMAIL);
$this->setProviderEmail2((string)$fiche->ADRPREST_EMAIL2);
$this->setProviderUrl((string)$fiche->ADRPREST_URL);
$this->setProviderUrl2((string)$fiche->ADRPREST_URL2);
$this->setContactCivility((string)$fiche->CIVILITE_RESPONSABLE);
$this->setContactFirstName((string)$fiche->PRENOM_RESPONSABLE);
$this->setContactLastName((string)$fiche->NOM_RESPONSABLE);
$this->setManagerCivility((string)$fiche->CIVILITE_PERSONNE_EN_CHARGE);
$this->setManagerLastName((string)$fiche->NOM_PERSONNE_EN_CHARGE);
$this->setManagerFirstName((string)$fiche->PRENOM_PERSONNE_EN_CHARGE);
$this->setManagerStreetNumber((string)$fiche->ADRPEC_NUM_VOIE);
$this->setManagerStreetName((string)$fiche->ADRPEC_LIB_VOIE);
$this->setManagerAdditionAddress((string)$fiche->ADRPEC_COMPL_ADRESSE);
$this->setManagerSpecialDistribution((string)$fiche->ADRPEC_DISTRI_SPE);
$this->setManagerZipCode((string)$fiche->ADRPEC_CP);
$this->setManagerCity((string)$fiche->ADRPEC_LIBELLE_COMMUNE);
$this->setManagerCountry((string)$fiche->ADRPEC_PAYS);
$this->setManagerPhone((string)$fiche->ADRPEC_TEL);
$this->setManagerPhone2((string)$fiche->ADRPEC_TEL2);
$this->setManagerPhone3((string)$fiche->ADRPEC_TEL3);
$this->setManagerFax((string)$fiche->ADRPEC_FAX);
$this->setManagerEmail((string)$fiche->ADRPEC_EMAIL);
$this->setManagerEmail2((string)$fiche->ADRPEC_EMAIL2);
$this->setManagerUrl((string)$fiche->ADRPEC_URL);
$this->setManagerUrl2((string)$fiche->ADRPEC_URL2);
$this->setTypeName((string)$fiche->TYPE_NOM);
if ((integer)$fiche->ENTITE_GESTIONNAIRE) {
$this->setEntityManager((integer)$fiche->ENTITE_GESTIONNAIRE);
}
if ((integer)$fiche->MARQUAGE) {
$this->setMarking((integer)$fiche->MARQUAGE);
}
if ((integer)$fiche->PRESTATAIRE) {
$this->setProviderCode((integer)$fiche->PRESTATAIRE);
}
if ((integer)$fiche->TYPE_DE_PRODUIT) {
$this->setProductTypeCode((integer)$fiche->TYPE_DE_PRODUIT);
}
$tmp = (string)$fiche->DATMAJ;
$tmp = substr($tmp, 0, 19); // on prend juste le format 'Y-m-d H:i:s', on coupe le reste - sinon probleme
$tmp = date_create_from_format("d/m/Y H:i:s", $tmp);
if ($tmp !== false) {
$setUpdatedAtFunc = 'setUpdatedAt';
if ($language != 'fr')
$setUpdatedAtFunc = 'set' . ucfirst($language) . 'UpdatedAt';
$this->$setUpdatedAtFunc($tmp);
}
$tmp = (string)$fiche->DATECREATION;
$tmp = date_create_from_format("d/m/Y H:i:s", $tmp);
if ($tmp !== false)
$this->setCreatedAt($tmp);
$tmp = (string)$fiche->VALABLE_DEPUIS;
$tmp = date_create_from_format("d/m/Y H:i:s", $tmp);
if ($tmp !== false)
$this->setValidFrom($tmp);
$tmp = (string)$fiche->VALABLE_JUSQU_A;
$tmp = date_create_from_format("d/m/Y H:i:s", $tmp);
if ($tmp !== false)
$this->setValidTo($tmp);
$tmp = (string)$fiche->MAXMAJ;
$tmp = date_create_from_format("d/m/Y H:i:s", $tmp);
if ($tmp !== false)
$this->setMaxUpdate($tmp);
// $this->setUpdatedAt((string) $fiche->DATMAJ);
//$this->setCreatedAt((string) $fiche->DATECREATION);
//$this->setValidFrom((string) $fiche->VALABLE_DEPUIS);
// $this->setValidTo((string) $fiche->VALABLE_JUSQU_A);
// $this->setMaxUpdate((string) $fiche->MAXMAJ);
if ((integer)$fiche->LALEA)
$this->setAlea((integer)$fiche->LALEA);
// Ici on intègre le KML
// $mods = BridgeFrontUtils::filterProductModalities($fiche->modalities,900002);
// Ici on récupère les valeurs des champs de l'entité DnsitProduct ayant le même productCode
// Récupération du productCode courant
$currentProductCode = $this->getProductCode();
if ($currentProductCode && $em !== null) {
// Recherche de l'entité DnsitProduct portant le même productCode
$dnsitProduct = $em->getRepository(DnsitProduct::class)->findOneBy(['productCode' => $currentProductCode]);
if ($dnsitProduct) {
// Mise à jour des propriétés kml, geoLineString et geoPoint
$this->setKml($dnsitProduct->getKml());
$this->setGeoLinestring($dnsitProduct->getGeoLinestring());
$this->setGeoPoint($dnsitProduct->getGeoPoint());
}
}
/*
$testKML = $fiche->xpath('CRITERES/Crit[@CLEF_CRITERE=900002]');
if (!empty($testKML) && is_array($testKML)) {
$this->setKml((string)$testKML[0]);
// on récupère le contenu de l'URL stockée dans $KML
$urlKml = $this->kml;
// on prévoit plusieurs essais de connexion au cas où
$nberr = 0;
$done = false;
$kmlData = false;
while (!$done && $nberr < 3) {
try {
$kmlData = file_get_contents($urlKml);
if ($kmlData !== false)
$done = true;
else
$nberr++;
} catch (\Exception $e) {
$nberr++;
}
if (!$done)
sleep(2 * $nberr);
}
if ($kmlData !== false) {
// test : produit 218006498
// on charge le KML dans une géométrie
$lineStringKML = \geoPHP::load($kmlData, 'kml');
// on s'assure qu'il s'agisse d'un élément simple
$simpleLineStringKML = \geoPHP::geometryReduce($lineStringKML);
$lineStringArray = array();
if ($simpleLineStringKML !== false & is_object($simpleLineStringKML)) {
// On s'attend à avoir une LineString mais il ya des fois des anomalies, on vérifie donc le type
$dataType = get_class($simpleLineStringKML);
// Doctrine Spatial a besoin d'un tableau de points en 2D seulement et les KML peuvent être en 3D
// Il faut aussi des types \LongitudeOne\Spatial\PHP\Types\Geometry\Point et non des types geoPHP\Point
// on récupère donc un tableau des composants de la géométrie
$lineStringKMLPoints = $simpleLineStringKML->getComponents();
if (is_array($lineStringKMLPoints) && count($lineStringKMLPoints) > 0) {
// si la géométrie est bien une LineString...
if ($dataType == 'LineString') {
foreach ($lineStringKMLPoints as $geoPhpPoint) {
// on boucle sur ses points
//$creofPoint = new \LongitudeOne\Spatial\PHP\Types\Geometry\Point($geoPhpPoint->coords[1], $geoPhpPoint->coords[0]);
// $creofPoint->setSrid("4326");
//$lineStringArray[] = $creofPoint;
$lineStringArray[] = $geoPhpPoint->coords[0] . ' ' . $geoPhpPoint->coords[1] ;
}
} else {
// Si la géométrie n'est pas une lineString, on considère que c'est soit une multilinestring (99% des cas) soit une multigeometry, on doit alors faire une deuxième boucle sur les objets
foreach ($lineStringKMLPoints as $lineString) {
$lineStringPoints = $lineString->getComponents();
if (is_array($lineStringPoints) && count($lineStringPoints) > 0) {
foreach ($lineStringPoints as $geoPhpPoint) {
// $creofPoint = new \LongitudeOne\Spatial\PHP\Types\Geometry\Point($geoPhpPoint->coords[1], $geoPhpPoint->coords[0]);
//$creofPoint->setSrid("4326");
//$lineStringArray[] = $creofPoint;
$lineStringArray[] = $geoPhpPoint->coords[0] . ' ' . $geoPhpPoint->coords[1] ;
}
}
}
}
}
}
if (!empty($lineStringArray)) {
// avec ce tableau de points, on crée un LineString PHP
// $lineString = new \LongitudeOne\Spatial\PHP\Types\Geometry\LineString($lineStringArray, "4326");
// on le passe dans geoLineString
//$this->setGeoLineString($lineString);
$lineString = 'SRID=4326;LINESTRING(' . implode(',', $lineStringArray) . ')';
// on le passe dans geoLineString
$this->setGeoLineString($lineString);
}
} else {
$this->setKml(null);
}
$sql = "INSERT INTO dnsit_translate_product (";
$sql .= implode(",", $columns) . " ) VALUES (";
$sql .= implode("','", $values) . " )";
}
*/
$this->setMarking(MarkingCodesMask::LEI);
}
public function setName($name, $language = null)
{
switch ($language) {
case "de":
$this->deName = $name;
break;
case "en":
$this->enName = $name;
break;
case "it":
$this->itName = $name;
break;
case "es":
$this->esName = $name;
break;
case "nl":
$this->nlName = $name;
break;
case "pt":
$this->ptName = $name;
break;
}
return $this;
}
/**
* Set comment7
*
* @param string comment
* @return DnsitTranslateProduct
*/
public function setComment7($comment, $language)
{
switch ($language) {
case "de":
$this->deComment7 = $comment;
break;
case "en":
$this->enComment7 = $comment;
break;
case "it":
$this->itComment7 = $comment;
break;
case "es":
$this->esComment7 = $comment;
break;
case "nl":
$this->nlComment7 = $comment;
break;
case "pt":
$this->ptComment7 = $comment;
break;
}
return $this;
}
/**
* Set comment7
*
* @param string comment
* @return DnsitTranslateProduct
*/
public function setComment8($comment, $language)
{
switch ($language) {
case "de":
$this->deComment8 = $comment;
break;
case "en":
$this->enComment8 = $comment;
break;
case "it":
$this->itComment8 = $comment;
break;
case "es":
$this->esComment8 = $comment;
break;
case "nl":
$this->nlComment8 = $comment;
break;
case "pt":
$this->ptComment8 = $comment;
break;
}
return $this;
} // inutile
/**
* Set comment7
*
* @param string comment
* @return DnsitTranslateProduct
*/
public function setComment9($comment, $language)
{
switch ($language) {
case "de":
$this->deComment9 = $comment;
break;
case "en":
$this->enComment9 = $comment;
break;
case "it":
$this->itComment9 = $comment;
break;
case "es":
$this->esComment9 = $comment;
break;
case "nl":
$this->nlComment9 = $comment;
break;
case "pt":
$this->ptComment9 = $comment;
break;
}
return $this;
}
/**
* Set commentHtml2
*
* @param string $commentHtml
* @return DnsitTranslateProduct
*/
public function setCommentHtml2($comment, $language = null)
{
switch ($language) {
case "de":
$this->deCommentHtml2 = $comment;
break;
case "en":
$this->enCommentHtml2 = $comment;
break;
case "it":
$this->itCommentHtml2 = $comment;
break;
case "es":
$this->esCommentHtml2 = $comment;
break;
case "nl":
$this->nlCommentHtml2 = $comment;
break;
case "pt":
$this->ptCommentHtml2 = $comment;
break;
}
return $this;
}
/**
* Set commentHtml3
*
* @param string $commentHtml
* @return DnsitTranslateProduct
*/
public function setCommentHtml3($comment, $language = null)
{
switch ($language) {
case "de":
$this->deCommentHtml3 = $comment;
break;
case "en":
$this->enCommentHtml3 = $comment;
break;
case "it":
$this->itCommentHtml3 = $comment;
break;
case "es":
$this->esCommentHtml3 = $comment;
break;
case "nl":
$this->nlCommentHtml3 = $comment;
break;
case "pt":
$this->ptCommentHtml3 = $comment;
break;
}
return $this;
}
public function setDocumentationf($documentationf, $language = null)
{
switch ($language) {
case "de":
$this->deDocumentationf = $documentationf;
break;
case "en":
$this->enDocumentationf = $documentationf;
break;
case "it":
$this->itDocumentationf = $documentationf;
break;
case "es":
$this->esDocumentationf = $documentationf;
break;
case "nl":
$this->nlDocumentationf = $documentationf;
break;
case "pt":
$this->ptDocumentationf = $documentationf;
break;
}
return $this;
}
public function setDocumentationl1($documentationl1, $language = null)
{
switch ($language) {
case "de":
$this->deDocumentationl1 = $documentationl1;
break;
case "en":
$this->enDocumentationl1 = $documentationl1;
break;
case "it":
$this->itDocumentationl1 = $documentationl1;
break;
case "es":
$this->esDocumentationl1 = $documentationl1;
break;
case "nl":
$this->nlDocumentationl1 = $documentationl1;
break;
case "pt":
$this->ptDocumentationl1 = $documentationl1;
break;
}
return $this;
}
public function setDocumentationl2($documentationl2, $language = null)
{
switch ($language) {
case "de":
$this->deDocumentationl2 = $documentationl2;
break;
case "en":
$this->enDocumentationl2 = $documentationl2;
break;
case "it":
$this->itDocumentationl2 = $documentationl2;
break;
case "es":
$this->esDocumentationl2 = $documentationl2;
break;
case "nl":
$this->nlDocumentationl2 = $documentationl2;
break;
case "pt":
$this->ptDocumentationl2 = $documentationl2;
break;
}
return $this;
}
public function getLatitude(): ?float
{
return $this->latitude;
}
public function setLatitude(?float $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getLongitude(): ?float
{
return $this->longitude;
}
public function setLongitude(?float $longitude): self
{
$this->longitude = $longitude;
return $this;
}
public function bindTourinsoftDatas($fiche, $language = "fr")
{
$tableau_balises_latitude = array("GmapLatitude", "LAT","DetailGOOGLEMAPLATITUDE", "LATITUDE");
$tableau_balises_longitude = array("GmapLongitude", "LON","DetailGOOGLEMAPLONGITUDE", "LONGITUDE");
$tableau_balises_traces = array("Itinerairegooglemap", "DetailTRACEGPS");
$tableau_balises_nom = array("DetailNomoffre", "DetailNOMOFFRE", "DetailNOMMANIFESTATION", "Nomoffre", "Nomdeloffre", "SyndicObjectName");
$tableau_balises_ville = array("DetailCommune", "DetailCOMMUNE", "Commune","commune", "COMMUNE", "COMMUNEPRINCIPALE", "COMMUNEDEPART", "Ville", "COMMUNETOURISTIQUE");
$this->setProductTextKey($fiche->SyndicObjectID);
$this->setMarking(0);
$longitude = 91;
$latitude = 181;
foreach($tableau_balises_latitude as $balise) {
if (property_exists($fiche, $balise) && isset($fiche->$balise)) {
$latitude = str_replace(",", ".", $fiche->$balise);
}
}
foreach($tableau_balises_longitude as $balise) {
if (property_exists($fiche, $balise) && isset($fiche->$balise)) {
$longitude = str_replace(",", ".", $fiche->$balise);
}
}
if (abs((float)$longitude) >= 0 && abs((float)$longitude) <= 180 && abs((float)$latitude) >= 0 && abs((float)$latitude) < 90) {
$this->setLongitude((float)$longitude);
$this->setLatitude((float)$latitude);
// Patch 08/08/19 : ajout du cast string
// $point = new \LongitudeOne\Spatial\PHP\Types\Geometry\Point($this->getLongitude(), $this->getLatitude());
// $point->setSrid("4326");
// $this->setGeoPoint($point);
$this->setGeoPoint('SRID=4326;POINT(' . $this->getLongitude() . ' ' . $this->getLatitude() . ')');
}
// Nouveau 06.11.2023 : traces GPS
$dataTrace = null;
foreach($tableau_balises_traces as $balise) {
if(isset($fiche->$balise))
$data = json_decode($fiche->$balise);
if(isset($data)) break;
}
if (isset($data) && is_object($data) && isset($data->lignes) && is_array($data->lignes)) {
// On va recoller les lignes
$lignesCollees = array();
foreach($data->lignes as $ligne) {
if(!is_object($ligne) || !isset($ligne->path))
continue;
$lignesCollees = array_merge($lignesCollees, $ligne->path);
}
$tableauWKT = array();
if(!empty($lignesCollees)) {
foreach($lignesCollees as $point) {
if(!is_array($point) || count($point) < 2) {
// Il y a parfois des points vides !!!
continue;
}
$tableauWKT[] = $point[1] . ' ' . $point[0]; // Lng lat
}
}
if(!empty($tableauWKT)) {
$lineString = 'SRID=4326;LINESTRING(' . implode(',', $tableauWKT) . ')';
$this->setGeoLinestring($lineString) ;
}
}
// Fin traces GPS
$setNameFunc = 'setName';
if ($language != 'fr')
$setNameFunc = 'set' . ucfirst($language) . 'Name';
// Nom de la fiche
foreach($tableau_balises_nom as $prop) {
if (property_exists($fiche, $prop) && !is_object($fiche->$prop))
$this->$setNameFunc((string)$fiche->$prop);
elseif (property_exists($fiche, $prop) && is_object($fiche->$prop) && isset($fiche->$prop->ThesLibelle))
$this->$setNameFunc((string)$fiche->$prop->ThesLibelle);
}
// $this->setAddress((string) $fiche->ADRESSE);
// $this->setStreetNumber((string) $fiche->ADRPROD_NUM_VOIE);
if (isset($fiche->AdresseComplete) && $fiche->AdresseComplete != '') {
$tabadr = explode('|', (string)$fiche->AdresseComplete);
if (count($tabadr) >= 6) {
$this->setStreetName($tabadr[0]);
$this->setAdditionAddress($tabadr[1]);
$this->setZipCode($tabadr[4]);
$this->setCity($tabadr[5]);
}
}
if (isset($fiche->DetailAdresse1))
$this->setStreetName((string)$fiche->DetailAdresse1);
elseif (isset($fiche->Adresse1))
$this->setStreetName((string)$fiche->Adresse1);
elseif (isset($fiche->Adresse1))
$this->setStreetName((string)$fiche->Adresse1);
elseif (isset($fiche->AD1))
$this->setStreetName((string)$fiche->AD1);
elseif (isset($fiche->ADRESSE1))
$this->setStreetName((string)$fiche->ADRESSE1);
if (isset($fiche->DetailAdresse2))
$this->setAdditionAddress((string)$fiche->DetailAdresse2);
elseif (isset($fiche->Adresse2))
$this->setAdditionAddress((string)$fiche->Adresse2);
elseif (isset($fiche->AD2))
$this->setAdditionAddress((string)$fiche->AD2);
elseif (isset($fiche->ADRESSE2))
$this->setAdditionAddress((string)$fiche->ADRESSE2);
if (isset($fiche->AD3))
$this->setSpecialDistributionAddress((string)$fiche->AD3);
elseif (isset($fiche->ADRESSE3))
$this->setSpecialDistributionAddress((string)$fiche->ADRESSE3);
if (isset($fiche->DetailCodePostal))
$this->setZipCode((string)$fiche->DetailCodePostal);
elseif (isset($fiche->CodePostal))
$this->setZipCode((string)$fiche->CodePostal);
elseif (isset($fiche->Codepostal))
$this->setZipCode((string)$fiche->Codepostal);
elseif (isset($fiche->CP))
$this->setZipCode((string)$fiche->CP);
elseif (isset($fiche->CODEPOSTAL))
$this->setZipCode((string)$fiche->CODEPOSTAL);
$doneCity = false;
foreach($tableau_balises_ville as $prop) {
if (property_exists($fiche, $prop) && !is_object($fiche->$prop)) {
$this->setCity((string)$fiche->$prop);
$doneCity = true;
} elseif (property_exists($fiche, $prop) && is_object($fiche->$prop) && isset($fiche->$prop->ThesLibelle)) {
$this->setCity((string)$fiche->$prop->ThesLibelle);
$doneCity = true;
}
}
if(!$doneCity && property_exists($fiche, 'ADRESSEs') && is_object($fiche->ADRESSEs) && property_exists($fiche->ADRESSEs, 'Communetouristique') && is_object($fiche->ADRESSEs->Communetouristique) && property_exists($fiche->ADRESSEs->Communetouristique, 'ThesLibelle'))
$this->setCity((string)$fiche->ADRESSEs->Communetouristique->ThesLibelle);
if (isset($fiche->DetailEmail))
$this->setEmail((string)$fiche->DetailEmail);
elseif (isset($fiche->Email))
$this->setEmail((string)$fiche->Email);
elseif (isset($fiche->CommMail))
$this->setEmail((string)$fiche->CommMail);
elseif (isset($fiche->CoordonneesEmail))
$this->setEmail((string)$fiche->CoordonneesEmail);
elseif (isset($fiche->MAIL))
$this->setEmail((string)$fiche->MAIL);
if (isset($fiche->DetailTel))
$this->setPhone((string)$fiche->DetailTel);
elseif (isset($fiche->Tel))
$this->setPhone((string)$fiche->Tel);
elseif (isset($fiche->TEL))
$this->setPhone((string)$fiche->TEL);
elseif (isset($fiche->CommTel))
$this->setPhone((string)$fiche->CommTel);
elseif (isset($fiche->CoordonneesTelfixe))
$this->setPhone((string)$fiche->CoordonneesTelfixe);
if (isset($fiche->DetailTelportable))
$this->setPhone2((string)$fiche->DetailTelportable);
elseif (isset($fiche->TelPortable))
$this->setPhone2((string)$fiche->TelPortable);
elseif (isset($fiche->CommMob))
$this->setPhone2((string)$fiche->CommMob);
elseif (isset($fiche->CoordonneesTelmobile))
$this->setPhone2((string)$fiche->CoordonneesTelmobile);
elseif (isset($fiche->TELMOB))
$this->setPhone2((string)$fiche->TELMOB);
if (isset($fiche->Detailurl))
$this->setUrl((string)$fiche->Detailurl);
elseif (isset($fiche->Url))
$this->setUrl((string)$fiche->Url);
elseif (isset($fiche->CommWeb))
$this->setUrl((string)$fiche->CommWeb);
elseif (isset($fiche->CoordonneesSiteweb))
$this->setUrl((string)$fiche->CoordonneesSiteweb);
elseif (isset($fiche->URL))
$this->setUrl((string)$fiche->URL);
if (isset($fiche->DetailDescriptifOT))
$this->setComment((string)$fiche->DetailDescriptifOT);
elseif (isset($fiche->Descriptif))
$this->setComment((string)$fiche->Descriptif);
elseif (isset($fiche->Description))
$this->setComment((string)$fiche->Description);
elseif (isset($fiche->DESCRIPTIF))
$this->setComment((string)$fiche->DESCRIPTIF);
if (isset($fiche->DescriptifSynthetique))
$this->setComment2((string)$fiche->DescriptifSynthetique);
// On stocke les données brutes de la fiche dans commentaireInterne
// Comme il peut y avoir des mises à jour successives avec différents champs
// On merge les infos avec l'existant
$testemp = $this->getInternalComment();
if (isset($testemp) && $testemp != null && $testemp != '') {
$ficheorig = json_decode($testemp);
$this->setInternalComment(json_encode((object)array_merge((array)$ficheorig, (array)$fiche)));
} else {
$this->setInternalComment(json_encode($fiche)); // On stocke la donnée JSON en brut dans le commentaire
}
// DetailContact est trop long car il peut contenir plusieurs contacts
// if (isset($fiche->DetailContact))
// $this->setProviderResponsibleName((string) $fiche->DetailContact);
if (isset($fiche->DetailRaisonsociale))
$this->setProviderName((string)$fiche->DetailRaisonsociale);
elseif (isset($fiche->Raisonsociale))
$this->setProviderName((string)$fiche->Raisonsociale);
if (isset($fiche->DetailSiteweb))
$this->setProviderUrl((string)$fiche->DetailSiteweb);
elseif (isset($fiche->Siteweb))
$this->setProviderUrl((string)$fiche->Siteweb);
if (isset($fiche->ObjectTypeName))
$this->setTypeName((string)$fiche->ObjectTypeName);
if (isset($fiche->Updated)) {
$tmp = str_replace('T', ' ', $fiche->Updated);
$tmp = substr($tmp, 0, 19); // on prend juste le format 'Y-m-d H:i:s', on coupe le reste - sinon probleme
$tmp = date_create_from_format("Y-m-d H:i:s", $tmp);
if ($tmp !== false) {
$setUpdatedAtFunc = 'setUpdatedAt';
if ($language != 'fr')
$setUpdatedAtFunc = 'set' . ucfirst($language) . 'UpdatedAt';
$this->$setUpdatedAtFunc($tmp);
}
}
$this->setMarking(MarkingCodesMask::TOURINSOFT);
}
public function bindApidaeDatas($fiche, $languages = array())
{
$nom = '';
// http://wcf.tourinsoft.com/Syndication/cdt37/339e9b43-b094-4871-867a-18d8dbdb7b20/Objects('ACCCEN0370007P')?$format=json
$this->setProductTextKey($fiche['identifier']);
if (isset($fiche['nom']) && isset($fiche['nom']['libelleFr']) && !empty($fiche['nom']['libelleFr']))
$nom = (string)$fiche['nom']['libelleFr'];
if($nom !== '' && is_array($languages)) {
foreach ($languages as $lang) {
$this->setName($nom, $lang);
}
}
if(is_array($languages)) {
foreach ($languages as $lang) {
if ($lang == 'fr') continue;
$tmpFunc = 'set' . ucfirst($lang) . 'Name';
if (isset($fiche['nom']) && isset($fiche['nom']['libelle' . ucfirst($lang)]) && !empty($fiche['nom']['libelle' . ucfirst($lang)]))
$this->setName($fiche['nom']['libelle' . ucfirst($lang)], $lang);
//else
// $this->setName($nom, $lang);
}
}
if (isset($fiche['id']))
$this->setProductCode($fiche['id']);
else
return false;
// Patch 10.07.2023 : on remet les champ à null pour prendre en compte les effacements côté apidae
$this->setPhone(null);
$this->setPhone2(null);
$this->setPhone3(null);
$this->setUrl(null);
$this->setEmail(null);
$this->setLocationName(null);
$this->setAddress(null);
$this->setStreetName(null);
$this->setAdditionAddress(null);
$this->setZipCode(null);
$this->setCity(null);
$this->setInsee(null);
$this->setProductTextKey($fiche['identifier']);
if (isset($fiche['informations']) && isset($fiche['informations']['moyensCommunication'])) {
$nbPhone = 0;
foreach ($fiche['informations']['moyensCommunication'] as $moycomm) {
$typecomm = '';
if (isset($moycomm['type']) && isset($moycomm['type']['id']) && isset($moycomm['coordonnees']) && isset($moycomm['coordonnees']['fr']))
$typecomm = (string)$moycomm['type']['id'];
if ($typecomm != '') {
switch ($typecomm) {
case "201": // TEL
if($nbPhone == 0)
$this->setPhone($moycomm['coordonnees']['fr']);
elseif($nbPhone == 1)
$this->setPhone2($moycomm['coordonnees']['fr']);
elseif($nbPhone == 2)
$this->setPhone3($moycomm['coordonnees']['fr']);
$nbPhone++;
break;
case "204": // MAIL
$this->setEmail($moycomm['coordonnees']['fr']);
break;
case "205": // URL
$this->setUrl($moycomm['coordonnees']['fr']);
break;
default: // TEL
// TODO : intégrer les autres données en critère
// $this->setPhone($moycomm['coordonnees']['fr']);
break;
}
}
}
}
foreach($languages as $lang) {
if ($lang == 'fr') continue;
$tmpFunc = 'set' . ucfirst($lang) . 'Comment';
if (isset($fiche['presentation']) && isset($fiche['presentation']['descriptifCourt']) && isset($fiche['presentation']['descriptifCourt']['libelle' . ucfirst($lang)])) {
$this->$tmpFunc($fiche['presentation']['descriptifCourt']['libelle' . ucfirst($lang)]);
} else {
$this->$tmpFunc('');
}
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['nomDuLieu'])) {
$this->setLocationName((string)$fiche['localisation']['adresse']['nomDuLieu']);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['adresse1'])) {
$this->setAddress((string)$fiche['localisation']['adresse']['adresse1']);
$this->setStreetName((string)$fiche['localisation']['adresse']['adresse1']);
} else {
$this->setStreetName(null);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['adresse2'])) {
$this->setAdditionAddress((string)$fiche['localisation']['adresse']['adresse2']);
} else {
$this->setAdditionAddress(null);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['codePostal'])) {
$this->setZipCode((string)$fiche['localisation']['adresse']['codePostal']);
} else {
$this->setZipCode(null);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['commune']) && isset($fiche['localisation']['adresse']['commune']['nom'])) {
$this->setCity((string)$fiche['localisation']['adresse']['commune']['nom']);
} else {
$this->setCity(null);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['adresse']) && isset($fiche['localisation']['adresse']['commune']) && isset($fiche['localisation']['adresse']['commune']['code'])) {
$this->setInsee((string)$fiche['localisation']['adresse']['commune']['code']);
}
if (isset($fiche['localisation']) && isset($fiche['localisation']['geolocalisation']) && isset($fiche['localisation']['geolocalisation']['geoJson']) && isset($fiche['localisation']['geolocalisation']['geoJson']['coordinates'])) {
// echo "\nLATLON IS DEFINED";
$longitude = ((double)$fiche['localisation']['geolocalisation']['geoJson']['coordinates'][0]);
$latitude = ((double)$fiche['localisation']['geolocalisation']['geoJson']['coordinates'][1]);
if (abs((float)$longitude) >= 0 && abs((float)$longitude) <= 180 && abs((float)$latitude) >= 0 && abs((float)$latitude) < 90) {
$this->setLongitude((double)$longitude);
$this->setLatitude((double)$latitude);
// Patch 08/08/19 : ajout du cast string
// Patch JM 03/02/2022 : les points sont en LON LAT et non pas LAT LON
// $point = new \LongitudeOne\Spatial\PHP\Types\Geometry\Point($this->getLongitude(), $this->getLatitude());
// $point->setSrid("4326");
// $this->setGeoPoint($point);
$this->setGeoPoint('SRID=4326;POINT(' . $this->getLongitude() . ' ' . $this->getLatitude() . ')');
}
}
$this->setMarking(MarkingCodesMask::APIDAE);
}
/**
* Get internalComment
*
* @return string
*/
public function getInternalComment()
{
return $this->internalComment;
}
/**
* Set internalComment
*
* @param string $internalComment
* @return DnsitTranslateProduct
*/
public function setInternalComment($internalComment, $language = null)
{
switch ($language) {
case "de":
$this->deInternalComment = $internalComment;
break;
case "en":
$this->enInternalComment = $internalComment;
break;
case "it":
$this->itInternalComment = $internalComment;
break;
case "es":
$this->esInternalComment = $internalComment;
break;
case "nl":
$this->nlInternalComment = $internalComment;
break;
case "pt":
$this->ptInternalComment = $internalComment;
break;
}
return $this;
}
/**
* Get comment
*
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* Set comment
*
* @param string $comment
* @return DnsitTranslateProduct
*/
public function setComment($comment, $language = null)
{
switch ($language) {
case "de":
$this->deComment = $comment;
break;
case "en":
$this->enComment = $comment;
break;
case "it":
$this->itComment = $comment;
break;
case "es":
$this->esComment = $comment;
break;
case "nl":
$this->nlComment = $comment;
break;
case "pt":
$this->ptComment = $comment;
break;
}
return $this;
}
/**
* Get comment1
*
* @return string
*/
public function getComment1()
{
return $this->comment1;
}
/**
* Set comment1
*
* @param string $comment1
* @return DnsitTranslateProduct
*/
public function setComment1($comment, $language = null)
{
switch ($language) {
case "de":
$this->deComment1 = $comment;
break;
case "en":
$this->enComment1 = $comment;
break;
case "it":
$this->itComment1 = $comment;
break;
case "es":
$this->esComment1 = $comment;
break;
case "nl":
$this->nlComment1 = $comment;
break;
case "pt":
$this->ptComment1 = $comment;
break;
}
return $this;
}
/**
* Get comment2
*
* @return string
*/
public function getComment2()
{
return $this->comment2;
}
/**
* Set comment2
*
* @param string $comment2
* @return DnsitTranslateProduct
*/
public function setComment2($comment, $language)
{
switch ($language) {
case "de":
$this->deComment2 = $comment;
break;
case "en":
$this->enComment2 = $comment;
break;
case "it":
$this->itComment2 = $comment;
break;
case "es":
$this->esComment2 = $comment;
break;
case "nl":
$this->nlComment2 = $comment;
break;
case "pt":
$this->ptComment2 = $comment;
break;
}
return $this;
}
/**
* Get commentHtml
*
* @return string
*/
public function getCommentHtml()
{
return $this->commentHtml;
}
/**
* Set commentHtml
*
* @param string $commentHtml
* @return DnsitTranslateProduct
*/
public function setCommentHtml($comment, $language = null)
{
switch ($language) {
case "de":
$this->deCommentHtml = $comment;
break;
case "en":
$this->enCommentHtml = $comment;
break;
case "it":
$this->itCommentHtml = $comment;
break;
case "es":
$this->esCommentHtml = $comment;
break;
case "nl":
$this->nlCommentHtml = $comment;
break;
case "pt":
$this->ptCommentHtml = $comment;
break;
}
return $this;
}
/**
* Get memo1
*
* @return string
*/
public function getMemo1()
{
return $this->memo1;
}
/**
* Set memo1
*
* @param string $memo1
* @return DnsitTranslateProduct
*/
public function setMemo1($memo, $language)
{
switch ($language) {
case "de":
$this->deMemo1 = $memo;
break;
case "en":
$this->enMemo1 = $memo;
break;
case "it":
$this->itMemo1 = $memo;
break;
case "es":
$this->esMemo1 = $memo;
break;
case "nl":
$this->nlMemo1 = $memo;
break;
case "pt":
$this->ptMemo1 = $memo;
break;
}
return $this;
}
/**
* Get memo2
*
* @return string
*/
public function getMemo2()
{
return $this->memo2;
}
/**
* Set memo2
*
* @param string $memo2
* @return DnsitTranslateProduct
*/
public function setMemo2($memo, $language)
{
switch ($language) {
case "de":
$this->deMemo2 = $memo;
break;
case "en":
$this->enMemo2 = $memo;
break;
case "it":
$this->itMemo2 = $memo;
break;
case "es":
$this->esMemo2 = $memo;
break;
case "nl":
$this->nlMemo2 = $memo;
break;
case "pt":
$this->ptMemo2 = $memo;
break;
}
return $this;
}
/**
* Get memo3
*
* @return string
*/
public function getMemo3()
{
return $this->memo3;
}
/**
* Set memo3
*
* @param string $memo3
* @return DnsitTranslateProduct
*/
public function setMemo3($memo, $language)
{
switch ($language) {
case "de":
$this->deMemo3 = $memo;
break;
case "en":
$this->enMemo3 = $memo;
break;
case "it":
$this->itMemo3 = $memo;
break;
case "es":
$this->esMemo3 = $memo;
break;
case "nl":
$this->nlMemo3 = $memo;
break;
case "pt":
$this->ptMemo3 = $memo;
break;
}
return $this;
}
/**
* @return Collection|DnsitProductDispo[]
*/
public function getDispos(): Collection
{
return $this->dispos;
}
public function addDispo(DnsitProductDispo $dispo): self
{
if (!$this->dispos->contains($dispo)) {
$this->dispos[] = $dispo;
$dispo->setTranslateProduct($this);
}
return $this;
}
public function removeDispo(DnsitProductDispo $dispo): self
{
if ($this->dispos->contains($dispo)) {
$this->dispos->removeElement($dispo);
// set the owning side to null (unless already changed)
if ($dispo->getTranslateProduct() === $this) {
$dispo->setTranslateProduct(null);
}
}
return $this;
}
public function getEnDocument(): ?string
{
return $this->en_document;
}
public function setEnDocument(?string $en_document): self
{
$this->en_document = $en_document;
return $this;
}
public function getDeDocument(): ?string
{
return $this->de_document;
}
public function setDeDocument(?string $de_document): self
{
$this->de_document = $de_document;
return $this;
}
public function getItDocument(): ?string
{
return $this->it_document;
}
public function setItDocument(string $it_document): self
{
$this->it_document = $it_document;
return $this;
}
public function getEsDocument(): ?string
{
return $this->es_document;
}
public function setEsDocument(?string $es_document): self
{
$this->es_document = $es_document;
return $this;
}
public function getNlDocument(): ?string
{
return $this->nl_document;
}
public function setNlDocument(?string $nl_document): self
{
$this->nl_document = $nl_document;
return $this;
}
public function getPtDocument(): ?string
{
return $this->pt_document;
}
public function setPtDocument(?string $pt_document): self
{
$this->pt_document = $pt_document;
return $this;
}
public function getEnUpdatedAt(): ?\DateTimeInterface
{
return $this->enUpdatedAt;
}
public function setEnUpdatedAt(?\DateTimeInterface $enUpdatedAt): self
{
$this->enUpdatedAt = $enUpdatedAt;
return $this;
}
public function getDeUpdatedAt(): ?\DateTimeInterface
{
return $this->deUpdatedAt;
}
public function setDeUpdatedAt(?\DateTimeInterface $deUpdatedAt): self
{
$this->deUpdatedAt = $deUpdatedAt;
return $this;
}
public function getEsUpdatedAt(): ?\DateTimeInterface
{
return $this->esUpdatedAt;
}
public function setEsUpdatedAt(?\DateTimeInterface $esUpdatedAt): self
{
$this->esUpdatedAt = $esUpdatedAt;
return $this;
}
public function getItUpdatedAt(): ?\DateTimeInterface
{
return $this->itUpdatedAt;
}
public function setItUpdatedAt(?\DateTimeInterface $itUpdatedAt): self
{
$this->itUpdatedAt = $itUpdatedAt;
return $this;
}
public function getNlUpdatedAt(): ?\DateTimeInterface
{
return $this->nlUpdatedAt;
}
public function setNlUpdatedAt(?\DateTimeInterface $nlUpdatedAt): self
{
$this->nlUpdatedAt = $nlUpdatedAt;
return $this;
}
public function getPtUpdatedAt(): ?\DateTimeInterface
{
return $this->ptUpdatedAt;
}
public function setPtUpdatedAt(?\DateTimeInterface $ptUpdatedAt): self
{
$this->ptUpdatedAt = $ptUpdatedAt;
return $this;
}
public function getEnComment7(): ?string
{
return $this->enComment7;
}
public function setEnComment7(?string $enComment7): self
{
$this->enComment7 = $enComment7;
return $this;
}
public function getEnComment8(): ?string
{
return $this->enComment8;
}
public function setEnComment8(?string $enComment8): self
{
$this->enComment8 = $enComment8;
return $this;
}
public function getEnComment9(): ?string
{
return $this->enComment9;
}
public function setEnComment9(?string $enComment9): self
{
$this->enComment9 = $enComment9;
return $this;
}
public function getEnCommentHtml2(): ?string
{
return $this->enCommentHtml2;
}
public function setEnCommentHtml2(?string $enCommentHtml2): self
{
$this->enCommentHtml2 = $enCommentHtml2;
return $this;
}
public function getEnCommentHtml3(): ?string
{
return $this->enCommentHtml3;
}
public function setEnCommentHtml3(?string $enCommentHtml3): self
{
$this->enCommentHtml3 = $enCommentHtml3;
return $this;
}
public function getDeComment7(): ?string
{
return $this->deComment7;
}
public function setDeComment7(?string $deComment7): self
{
$this->deComment7 = $deComment7;
return $this;
}
public function getDeComment8(): ?string
{
return $this->deComment8;
}
public function setDeComment8(?string $deComment8): self
{
$this->deComment8 = $deComment8;
return $this;
}
public function getDeComment9(): ?string
{
return $this->deComment9;
}
public function setDeComment9(?string $deComment9): self
{
$this->deComment9 = $deComment9;
return $this;
}
public function getDeCommentHtml2(): ?string
{
return $this->deCommentHtml2;
}
public function setDeCommentHtml2(?string $deCommentHtml2): self
{
$this->deCommentHtml2 = $deCommentHtml2;
return $this;
}
public function getDeCommentHtml3(): ?string
{
return $this->deCommentHtml3;
}
public function setDeCommentHtml3(?string $deCommentHtml3): self
{
$this->deCommentHtml3 = $deCommentHtml3;
return $this;
}
public function getEsComment7(): ?string
{
return $this->esComment7;
}
public function setEsComment7(?string $esComment7): self
{
$this->esComment7 = $esComment7;
return $this;
}
public function getEsComment8(): ?string
{
return $this->esComment8;
}
public function setEsComment8(?string $esComment8): self
{
$this->esComment8 = $esComment8;
return $this;
}
public function getEsComment9(): ?string
{
return $this->esComment9;
}
public function setEsComment9(?string $esComment9): self
{
$this->esComment9 = $esComment9;
return $this;
}
public function getEsCommentHtml2(): ?string
{
return $this->esCommentHtml2;
}
public function setEsCommentHtml2(?string $esCommentHtml2): self
{
$this->esCommentHtml2 = $esCommentHtml2;
return $this;
}
public function getEsCommentHtml3(): ?string
{
return $this->esCommentHtml3;
}
public function setEsCommentHtml3(?string $esCommentHtml3): self
{
$this->esCommentHtml3 = $esCommentHtml3;
return $this;
}
public function getItComment7(): ?string
{
return $this->itComment7;
}
public function setItComment7(?string $itComment7): self
{
$this->itComment7 = $itComment7;
return $this;
}
public function getItComment8(): ?string
{
return $this->itComment8;
}
public function setItComment8(?string $itComment8): self
{
$this->itComment8 = $itComment8;
return $this;
}
public function getItComment9(): ?string
{
return $this->itComment9;
}
public function setItComment9(?string $itComment9): self
{
$this->itComment9 = $itComment9;
return $this;
}
public function getItCommentHtml2(): ?string
{
return $this->itCommentHtml2;
}
public function setItCommentHtml2(?string $itCommentHtml2): self
{
$this->itCommentHtml2 = $itCommentHtml2;
return $this;
}
public function getItCommentHtml3(): ?string
{
return $this->itCommentHtml3;
}
public function setItCommentHtml3(?string $itCommentHtml3): self
{
$this->itCommentHtml3 = $itCommentHtml3;
return $this;
}
public function getNlComment7(): ?string
{
return $this->nlComment7;
}
public function setNlComment7(?string $nlComment7): self
{
$this->nlComment7 = $nlComment7;
return $this;
}
public function getNlComment8(): ?string
{
return $this->nlComment8;
}
public function setNlComment8(?string $nlComment8): self
{
$this->nlComment8 = $nlComment8;
return $this;
}
public function getNlComment9(): ?string
{
return $this->nlComment9;
}
public function setNlComment9(?string $nlComment9): self
{
$this->nlComment9 = $nlComment9;
return $this;
}
public function getNlCommentHtml2(): ?string
{
return $this->nlCommentHtml2;
}
public function setNlCommentHtml2(?string $nlCommentHtml2): self
{
$this->nlCommentHtml2 = $nlCommentHtml2;
return $this;
}
public function getNlCommentHtml3(): ?string
{
return $this->nlCommentHtml3;
}
public function setNlCommentHtml3(?string $nlCommentHtml3): self
{
$this->nlCommentHtml3 = $nlCommentHtml3;
return $this;
}
public function getPtComment7(): ?string
{
return $this->ptComment7;
}
public function setPtComment7(?string $ptComment7): self
{
$this->ptComment7 = $ptComment7;
return $this;
}
public function getPtComment8(): ?string
{
return $this->ptComment8;
}
public function setPtComment8(?string $ptComment8): self
{
$this->ptComment8 = $ptComment8;
return $this;
}
public function getPtComment9(): ?string
{
return $this->ptComment9;
}
public function setPtComment9(?string $ptComment9): self
{
$this->ptComment9 = $ptComment9;
return $this;
}
public function getPtCommentHtml2(): ?string
{
return $this->ptCommentHtml2;
}
public function setPtCommentHtml2(?string $ptCommentHtml2): self
{
$this->ptCommentHtml2 = $ptCommentHtml2;
return $this;
}
public function getPtCommentHtml3(): ?string
{
return $this->ptCommentHtml3;
}
public function setPtCommentHtml3(?string $ptCommentHtml3): self
{
$this->ptCommentHtml3 = $ptCommentHtml3;
return $this;
}
public function getProviderTextKey(): ?string
{
return $this->providerTextKey;
}
public function setProviderTextKey(?string $key): self
{
$this->providerTextKey = $key;
return $this;
}
}