src/Entity/Item.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Validator\Constraints as AcmeAssert;
  4. use App\Validator\ItemImeiNumber;
  5. use App\Validator\ItemSerialNumber;
  6. use DateTime;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Component\HttpFoundation\File\File;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  13. /**
  14.  * @Vich\Uploadable
  15.  */
  16. #[ORM\Entity(repositoryClass"App\Repository\ItemRepository")]
  17. #[ORM\Table(name'item')]
  18. class Item implements UserObjectInterface
  19. {
  20.     public const OTHER 'AUTRE';
  21.     #[ORM\OneToMany(mappedBy"stolenBike"targetEntityComplaintX::class, cascade: ["remove"])]
  22.     private Collection|array $stolenBike;
  23.     #[ORM\ManyToMany(targetEntityLossReport::class, mappedBy"items")]
  24.     private Collection|array $lossReports;
  25.     #[ORM\OneToMany(mappedBy"item"targetEntityInsurance::class, cascade: ["remove"])]
  26.     private Collection|array $insurances;
  27.     #[ORM\ManyToMany(targetEntityItemsListComplaint::class, mappedBy"items")]
  28.     private Collection|array $itemsListComplaints;
  29.     #[ORM\Column(name"complaintAt"type"datetime"nullabletrue)]
  30.     private ?DateTime $complaintAt;
  31.     #[ORM\ManyToMany(targetEntityComplaintX::class, mappedBy"items")]
  32.     private Collection|array $complaintXs;
  33.     #[ORM\Column(type"boolean")]
  34.     private bool $isTransferred false;
  35.     #[ORM\ManyToMany(targetEntityDisasterDeclaration::class, mappedBy"destroyedItems")]
  36.     private Collection|array $disasterDeclarations;
  37.     #[ORM\ManyToMany(targetEntitySteal::class, mappedBy"items")]
  38.     private Collection|array $steals;
  39.     #[ORM\ManyToMany(targetEntityComplaintLetter::class, mappedBy"items")]
  40.     private Collection|array $complaintLetters;
  41.     #[ORM\OneToOne(mappedBy"newItem"targetEntityGoodAssignement::class)]
  42.     private GoodAssignement $goodAssignement;
  43.     #[ORM\OneToMany(mappedBy"item"targetEntityGoodAssignement::class, cascade: ["remove"])]
  44.     private Collection|array $goodAssignements;
  45.     #[ORM\Column(name"createdAt"type"datetime")]
  46.     private DateTime $createdAt;
  47.     /**
  48.      * @AcmeAssert\ItemPhoto
  49.      */
  50.     #[ORM\OneToMany(targetEntityItemPhoto::class, mappedBy"item"cascade: ["persist""remove"])]
  51.     private Collection|array $itemPhotos;
  52.     #[ORM\Column(name"id"type"integer")]
  53.     #[ORM\Id]
  54.     #[ORM\GeneratedValue(strategy"AUTO")]
  55.     private ?int $id null;
  56.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy"items")]
  57.     #[ORM\JoinColumn(nullablefalse)]
  58.     private ?User $user null;
  59.     #[Assert\Choice(callback"getStatuts"multiplefalse)]
  60.     #[ORM\Column(name"statut"type"string"length255nullabletrue)]
  61.     private ?string $statut "Ok";
  62.     #[ORM\Column(type"string"length255nullabletrue)]
  63.     private ?string $name null;
  64.     #[ORM\Column(name"type"type"string"length255nullabletrue)]
  65.     private ?string $type;
  66.     #[ORM\Column(type"string"length255nullabletrue)]
  67.     private ?string $brand null;
  68.     #[ORM\Column(name"modelNumber"type"string"length255nullabletrue)]
  69.     private ?string $modelNumber;
  70.     #[ORM\Column(name"serialNumber"type"string"length255nullabletrue)]
  71.     #[ItemSerialNumber()]
  72.     #[Assert\Type(type"alnum"message"Le numéro de série doit être de type alphanumérique.")]
  73.     private ?string $serialNumber;
  74.     #[Assert\NotBlank(message'Ce champ est obligatoire')]
  75.     #[Assert\Choice(callback"getCategories"multiplefalse)]
  76.     #[ORM\Column(name"category"type"string"length255nullabletrue)]
  77.     private ?string $category null;
  78.     #[ORM\Column(name"estimateValue"type"decimal"precision10scale2nullabletrue)]
  79.     private ?float $estimateValue;
  80.     #[ORM\Column(name"comment"type"text"nullabletrue)]
  81.     private ?string $comment;
  82.     #[ORM\Column(name"securitySticker"type"string"length255nullabletrue)]
  83.     private ?string $securitySticker;
  84.     #[ORM\Column(name"imeiNumber"type"string"length255nullabletrue)]
  85.     #[ItemImeiNumber()]
  86.     private ?string $imeiNumber '';
  87.     /**
  88.      * @Vich\UploadableField(mapping= "itemBubbleCode", fileNameProperty= "itemBubbleCodeFileName", size= "itemBubbleCodeFileSize")
  89.      */
  90.     private ?File $itemBubbleCodeFile null;
  91.     #[ORM\Column(type"string"length255nullabletrue)]
  92.     private ?string $itemBubbleCodeFileName;
  93.     #[ORM\Column(type"integer"nullabletrue)]
  94.     private ?int $itemBubbleCodeFileSize;
  95.     #[ORM\Column(type"datetime"nullabletrue)]
  96.     private ?DateTime $itemBubbleCodeFileUpdatedAt;
  97.     /**
  98.      * @Vich\UploadableField(mapping= "itemPhoto", fileNameProperty= "itemPhotoFileName", size= "itemPhotoFileSize")
  99.      */
  100.     private ?File $itemPhotoFile null;
  101.     #[ORM\Column(type"string"length255nullabletrue)]
  102.     private ?string $itemPhotoFileName null;
  103.     #[ORM\Column(type"integer"nullabletrue)]
  104.     private ?int $itemPhotoFileSize;
  105.     #[ORM\Column(type"datetime"nullabletrue)]
  106.     private ?DateTime $itemPhotoFileUpdatedAt;
  107.     /**
  108.      * @Vich\UploadableField(mapping= "itemInvoice", fileNameProperty= "itemInvoiceFileName", size= "itemInvoiceFileSize")
  109.      */
  110.     private ?File $itemInvoiceFile null;
  111.     #[ORM\Column(type"string"length255nullabletrue)]
  112.     private ?string $itemInvoiceFileName null;
  113.     #[ORM\Column(type"integer"nullabletrue)]
  114.     private ?int $itemInvoiceFileSize;
  115.     #[ORM\Column(type"datetime"nullabletrue)]
  116.     private ?DateTime $itemInvoiceFileUpdatedAt;
  117.     #[ORM\Column(type"boolean")]
  118.     private bool $isDeleted false;
  119.     #[ORM\ManyToOne]
  120.     private ?SelectValues $mainColor null;
  121.     #[ORM\Column(length255nullabletrue)]
  122.     private ?string $antiTheftMarking null;
  123.     #[ORM\ManyToOne]
  124.     private ?SelectValues $antiTheftMarkingType null;
  125.     public function __construct()
  126.     {
  127.         $this->createdAt = new DateTime();
  128.         $this->itemPhotos = new ArrayCollection();
  129.     }
  130.     public function __toString()
  131.     {
  132.         return strval($this->id);
  133.     }
  134.     public static function getStatuts()
  135.     {
  136.         $arr = [
  137.             "Ok",
  138.             "Perdu",
  139.             "Volé",
  140.             "Détruit",
  141.             "Vendu",
  142.             "Donné",
  143.         ];
  144.         return array_combine($arr$arr);
  145.     }
  146.     public static function getNames($category nullstring $withOther null)
  147.     {
  148.         $arr = match ($category) {
  149.             'telephonie' => [
  150.                 'SMARTPHONE',
  151.                 'TÉLÉPHONE FIXE',
  152.                 'TÉLÉPHONE GSM',
  153.                 'TÉLÉPHONE MOBILE'
  154.             ],
  155.             'informatique' => [
  156.                 'DISQUE DUR EXTERNE',
  157.                 'ECRAN',
  158.                 'IMPRIMANTE JET D\'ENCRE',
  159.                 'IMPRIMANTE LASER',
  160.                 'ORDINATEUR / TABLETTE 2 EN 1',
  161.                 'ORDINATEUR DE BUREAU',
  162.                 'ORDINATEUR PORTABLE',
  163.                 'PHOTOCOPIEUR',
  164.                 'SCANNER',
  165.                 'TABLETTE NUMERIQUE',
  166.                 'ULTRABOOK',
  167.                 'VIDEO PROJECTEUR'
  168.             ],
  169.             'tv' => [
  170.                 'BOITIER MULTIMEDIA',
  171.                 'BOX INTERNET',
  172.                 'DECODEUR TV',
  173.                 'DECODEUR WIFI',
  174.                 'HOME CINEMA',
  175.                 'LECTEUR BLU-RAY',
  176.                 'LECTEUR DVD',
  177.                 'LECTEUR VHS',
  178.                 'TELEVISEUR',
  179.                 'VIDEO PROJECTEUR'
  180.             ],
  181.             'son' => [
  182.                 'AMPLIFICATEUR HIFI',
  183.                 'BARRE DE SON',
  184.                 'CAISSON DE BASSE',
  185.                 'CASQUE AUDIO',
  186.                 'CHAINE HIFI',
  187.                 'ENCEINTE CONNECTEE',
  188.                 'ENCEINTE HIFI',
  189.                 'ENCEINTE NOMADE',
  190.                 'HOME CINEMA',
  191.                 'LECTEUR CD PORTABLE',
  192.                 'LECTEUR MP3',
  193.                 'PLATINE CD',
  194.                 'PLATINE VINYLE',
  195.                 'SONO DJ'
  196.             ],
  197.             'photo' => [
  198.                 'APPAREIL PHOTO BRIDGE',
  199.                 'APPAREIL PHOTO COMPACT',
  200.                 'APPAREIL PHOTO INSTANTANE',
  201.                 'APPAREIL PHOTO REFLEX',
  202.                 'CAMERA EMBARQUEE',
  203.                 'CAMERA SPORT',
  204.                 'CAMESCOPE',
  205.                 'OBJECTIF PHOTO'
  206.             ],
  207.             'bijou' => [
  208.                 'ALLIANCE',
  209.                 'BAGUE',
  210.                 'BAGUE AVEC PIERRE(S)',
  211.                 'BOUCLES D’OREILLES',
  212.                 'BRACELET FEMME',
  213.                 'BRACELET HOMME',
  214.                 'BROCHE',
  215.                 'CHEVALIERE',
  216.                 'COLLIER',
  217.                 'MONTRE FEMME',
  218.                 'MONTRE HOMME',
  219.                 'PENDENTIF'
  220.             ],
  221.             'electromenager' => [
  222.                 'ASPIRATEUR',
  223.                 'BARBECUE',
  224.                 'CAFETIERE',
  225.                 'CAVE A VIN',
  226.                 'CENTRIFUGEUSE',
  227.                 'CONGELATEUR',
  228.                 'CUISINIERE',
  229.                 'EXTRACTEUR DE JUS',
  230.                 'FOUR',
  231.                 'GRILLE-PAIN',
  232.                 'LAVE-LINGE',
  233.                 'LAVE-VAISSELLE',
  234.                 'MICRO-ONDE',
  235.                 'PLANCHA',
  236.                 'PLAQUE DE CUISSON',
  237.                 'REFRIGERATEUR',
  238.                 'ROBOT CULINAIRE',
  239.                 'SECHE-LINGE'
  240.             ],
  241.             'mobilier' => [
  242.                 'ARMOIRE',
  243.                 'BUFFET BAS',
  244.                 'BUFFET HAUT',
  245.                 'BUREAU',
  246.                 'CANAPE',
  247.                 'CHAISE',
  248.                 'COMMODE',
  249.                 'FAUTEUIL',
  250.                 'LIT',
  251.                 'MEUBLE DE JARDIN',
  252.                 'MEUBLE VITRINE',
  253.                 'TABLE',
  254.                 'VAISSELIER ',
  255.                 'VITRINE'
  256.             ],
  257.             'tableau' => [
  258.                 'COLLAGE',
  259.                 'DESSIN',
  260.                 'GOUACHE',
  261.                 'GRAVURE',
  262.                 'HORLOGE',
  263.                 'HUILE SUR BOIS',
  264.                 'HUILE SUR TOILE',
  265.                 'LAMPE',
  266.                 'LITHOGRAPHIE ',
  267.                 'LUSTRE',
  268.                 'PASTEL',
  269.                 'PENDULE',
  270.                 'PHOTOGRAPHIE D’ART',
  271.                 'SANGUINE',
  272.                 'SCULPTURE',
  273.                 'STATUE',
  274.                 'TABLEAU',
  275.                 'VASE'
  276.             ],
  277.             'jardinage' => [
  278.                 'ASPIRATEUR',
  279.                 'CHALUMEAU',
  280.                 'COMPRESSEUR',
  281.                 'DEBROUSSAILLEUSE',
  282.                 'GROUPE ELECTROGENE ',
  283.                 'MARTEAU PIQUEUR',
  284.                 'MEULEUSE',
  285.                 'NETTOYEUR HAUTE PRESSION',
  286.                 'PERCEUSE',
  287.                 'PERCEUSE À COLONE ',
  288.                 'PERFORATEUR',
  289.                 'PONCEUSE',
  290.                 'POSTE A SOUDER',
  291.                 'SCIE CIRCULAIRE',
  292.                 'SCIE SAUTEUSE',
  293.                 'SOUFFLEUR',
  294.                 'TAILLE HAIE',
  295.                 'TONDEUSE A GAZON',
  296.                 'TONDEUSE AUTOPORTEE',
  297.                 'TRONÇONNEUSE',
  298.                 'TOURET À MEULER',
  299.                 'VISSEUSE'
  300.             ],
  301.             'musique' => [
  302.                 'ACCORDEON',
  303.                 'ALTO',
  304.                 'BANDONEON',
  305.                 'BANJO',
  306.                 'BASSON',
  307.                 'BATTERIE',
  308.                 'BATTERIE ELECTRONIQUE',
  309.                 'BINIOU ',
  310.                 'BOMBARDE',
  311.                 'CITHARE',
  312.                 'CLAIRON',
  313.                 'CLARINETTE',
  314.                 'CLAVECIN ',
  315.                 'CONTREBASSE',
  316.                 'COR DE CHASSE',
  317.                 'CORNET A PISTONS',
  318.                 'FLUTE A BEC',
  319.                 'FLUTE TRAVERSIERE',
  320.                 'GROSSE CAISSE',
  321.                 'GUITARE ACOUSTIQUE',
  322.                 'GUITARE BASSE',
  323.                 'GUITARE CLASSIQUE',
  324.                 'GUITARE ELECTRIQUE',
  325.                 'GUITARE ELECTRO-ACOUSTIQUE',
  326.                 'HARPE : ',
  327.                 'HAUTBOIS',
  328.                 'MANDOLINE',
  329.                 'ORGUE',
  330.                 'ORGUE DE BARBARIE',
  331.                 'ORGUE ELECTRONIQUE',
  332.                 'PIANO',
  333.                 'PIANO A QUEUE',
  334.                 'PIANO DROIT',
  335.                 'PIANO ELECTRIQUE',
  336.                 'SAXOPHONE ',
  337.                 'SAXOPHONE ALTO',
  338.                 'SAXOPHONE SOPRANO',
  339.                 'SAXOPHONE TENOR',
  340.                 'SYNTHETISEUR',
  341.                 'TROMBONE',
  342.                 'TROMPETTE',
  343.                 'TUBA',
  344.                 'VIELE',
  345.                 'VIELLE A ROUE',
  346.                 'VIOLON',
  347.                 'VIOLONCELLE',
  348.                 'XYLOPHONE'
  349.             ],
  350.             'chasse' => [
  351.                 'BAÏONNETTE',
  352.                 'CARABINE DE CHASSE',
  353.                 'CARABINE DE COLLECTION',
  354.                 'CARABINE DE TIR SPORTIF',
  355.                 'COUTEAU',
  356.                 'EPEE',
  357.                 'FLEURET',
  358.                 'FUSIL DE CHASSE',
  359.                 'FUSIL DE COLLECTION',
  360.                 'LANCE',
  361.                 'PISTOLET DE COLLECTION',
  362.                 'PISTOLET DE TIR SPORTIF',
  363.                 'REVOLVER DE COLLECTION',
  364.                 'REVOLVER DE TIR SPORTIF',
  365.                 'SABRE'
  366.             ],
  367.             'jouet' => [
  368.                 'BABYFOOT',
  369.                 'BILLARD',
  370.                 'CONSOLE DE SALON',
  371.                 'CONSOLE PORTABLE',
  372.                 'FLIPPER ',
  373.                 'JEUX DE SOCIETE',
  374.                 'JOUET ANCIEN'
  375.             ],
  376.             'sport' => [
  377.                 'JET SKI',
  378.                 'KARTING',
  379.                 'MOTO NON HOMOLOGUEE ROUTE',
  380.                 'OVERBOARD',
  381.                 'QUAD NON HOMOLOGUE ROUTE',
  382.                 'ROUE ELECTRIQUE',
  383.                 'SCOOTER DES NEIGES',
  384.                 'SCOOTER NAUTIQUE',
  385.                 'SKI',
  386.                 'SNOWBOARD',
  387.                 'TROTTINETTE ',
  388.                 'TROTTINETTE ELECTRIQUE'
  389.             ],
  390.             'hitech' => [
  391.                 'BRACELET CONNECTE',
  392.                 'CASQUE VR',
  393.                 'DRONE',
  394.                 'ENCEINTE CONNECTEE',
  395.                 'MONTRE CONNECTEE'
  396.             ],
  397.             'velo' => [
  398.                 'VÉLO D’APPARTEMENT',
  399.                 'VÉLO D’ENFANT',
  400.                 'VÉLO DE COMPETITION',
  401.                 'VÉLO DE COURSE',
  402.                 'VÉLO DE LOISIR',
  403.                 'VÉLO DE ROUTE',
  404.                 'VÉLO DE ROUTE ELECTRIQUE',
  405.                 'VÉLO DE VILLE',
  406.                 'VÉLO DE VILLE ELECTRIQUE',
  407.                 'VÉLO ELECTRIQUE',
  408.                 'VÉLO TANDEM',
  409.                 'VÉLO TANDEM ELECTRIQUE',
  410.                 'VTT',
  411.                 'VTT ELECTRIQUE'
  412.             ],
  413.             default => [],
  414.         };
  415.         if ($withOther) {
  416.             $arr array_merge($arr, [
  417.                 $withOther,
  418.             ]);
  419.         }
  420.         asort($arr);
  421.         if (null !== $category && !in_array($category, ['divers''collection'])) {
  422.             $arr array_merge($arr, [
  423.                 self::OTHER,
  424.             ]);
  425.         }
  426.         return array_combine($arr$arr);
  427.     }
  428.     public static function getBrands($type null$withOther null)
  429.     {
  430.         $arr = [];
  431.         if ($type == "null") {
  432.             $arr['Veuillez choisir un type'] = "0";
  433.         } else {
  434.             switch ($type) {
  435.                 case 'telephonie':
  436.                     $arr = [
  437.                         'ACER',
  438.                         'ALCATEL',
  439.                         'APPLE',
  440.                         'ARCHOS',
  441.                         'ASUS',
  442.                         'BENQ',
  443.                         'BLACKBERRY',
  444.                         'BLACKVIEW',
  445.                         'BQ',
  446.                         'CONDOR',
  447.                         'CROSSCALL',
  448.                         'DORO',
  449.                         'ECHO',
  450.                         'EMPORIA',
  451.                         'GOOGLE',
  452.                         'HISENSE',
  453.                         'HONOR',
  454.                         'HTC',
  455.                         'HUAWEI',
  456.                         'KAZAM',
  457.                         'KODAK',
  458.                         'LEAGOO',
  459.                         'LENOVO',
  460.                         'LG',
  461.                         'MEDION',
  462.                         'MEIZU',
  463.                         'MOTOROLA',
  464.                         'NEFFOS',
  465.                         'NOKIA',
  466.                         'ONEPLUS',
  467.                         'OPPO',
  468.                         'ORANGE',
  469.                         'OUKITEL',
  470.                         'POCOPHONE',
  471.                         'POLAROID',
  472.                         'RAZER',
  473.                         'RED',
  474.                         'SAMSUNG',
  475.                         'SONY',
  476.                         'SONY ,ERICSSON',
  477.                         'UMIDIGI',
  478.                         'VERNEE',
  479.                         'WIKO',
  480.                         'XIAOMI',
  481.                         'YEZZ',
  482.                         'YOTAPHONE',
  483.                         'ZOPO',
  484.                         'ZTE',
  485.                     ];
  486.                     break;
  487.                 case 'informatique':
  488.                     $arr = [
  489.                         '3DSYSTEMS',
  490.                         'ACER',
  491.                         'ADAPTEC',
  492.                         'ALCATEL',
  493.                         'ALIENWARE',
  494.                         'AMAZON',
  495.                         'AOC',
  496.                         'APPLE',
  497.                         'ARCHOS',
  498.                         'ASUS',
  499.                         'BENQ',
  500.                         'BQ',
  501.                         'BROTHER',
  502.                         'CANON',
  503.                         'CITIZEN',
  504.                         'COMPAQ',
  505.                         'CONRAD',
  506.                         'CUBIFY',
  507.                         'DATACARD',
  508.                         'DATAMAX',
  509.                         'DELL',
  510.                         'DELNA',
  511.                         'DIMENSION PRINTING',
  512.                         'EALTEC',
  513.                         'EPSON',
  514.                         'EVOLIS',
  515.                         'EXABYTE',
  516.                         'FARGO',
  517.                         'FUJIFILM',
  518.                         'FUJITSU',
  519.                         'GOOGLE',
  520.                         'GULLI',
  521.                         'HAIER',
  522.                         'HOMIDO',
  523.                         'HP',
  524.                         'HTC',
  525.                         'HUAWEI',
  526.                         'IBM',
  527.                         'IIYAMA',
  528.                         'IMATION',
  529.                         'IOMEGA SIEMENS',
  530.                         'JVC',
  531.                         'KANEMATSU',
  532.                         'KODAK',
  533.                         'KONICA',
  534.                         'KYOCERA',
  535.                         'LENOVO',
  536.                         'LEXIBOOK',
  537.                         'LEXMARK',
  538.                         'LG',
  539.                         'LINDY FRANCE  ',
  540.                         'MAGICARD',
  541.                         'MAKERBOT',
  542.                         'MAXIBURO',
  543.                         'MAXTOR',
  544.                         'MEDION',
  545.                         'MICROSOFT',
  546.                         'MIMAKI',
  547.                         'MINOLTA',
  548.                         'MITSUBISHI',
  549.                         'MORPHOS.FR',
  550.                         'MSI',
  551.                         'NAELCOM',
  552.                         'NVIDIA',
  553.                         'OCE',
  554.                         'OKI',
  555.                         'OPTOMA',
  556.                         'ORDISSIMO',
  557.                         'OREGON',
  558.                         'OTC',
  559.                         'PACKARD BELL',
  560.                         'PANASONIC',
  561.                         'PHILIPS',
  562.                         'POCKETBOOK',
  563.                         'PRINTRONIX',
  564.                         'RICOH',
  565.                         'SAMSUNG',
  566.                         'SATO',
  567.                         'SEAGATE',
  568.                         'SEAGATE TECHNOLOGY',
  569.                         'SEIKO',
  570.                         'SELECLINE',
  571.                         'SOLID SCAPE',
  572.                         'SOLIDOODLE',
  573.                         'SONY',
  574.                         'STRATASYS',
  575.                         'SUMMA',
  576.                         'TALLY GENICOM',
  577.                         'TOSHIBA',
  578.                         'U PRINT',
  579.                         'VTECH',
  580.                         'WD',
  581.                         'WESTERN DIGITAL',
  582.                         'XEROX',
  583.                         'Z CORP',
  584.                         'ZEBRA',
  585.                         'INFOCUS ',
  586.                         'VIEWSONIC ',
  587.                         'VIVITEK ',
  588.                         'XGIMI ',
  589.                         'XIAOMI'
  590.                     ];
  591.                     break;
  592.                 case 'tv':
  593.                     $arr = [
  594.                         'ACER',
  595.                         'AMAZON',
  596.                         'APPLE',
  597.                         'ASUS',
  598.                         'AYA',
  599.                         'BENQ',
  600.                         'BOUYGUES',
  601.                         'BOUYGUES TELECOM',
  602.                         'BQ',
  603.                         'CORIOLIS',
  604.                         'DELL',
  605.                         'EPSON',
  606.                         'ESSENTIEL B',
  607.                         'FREE',
  608.                         'FUNAI',
  609.                         'GOOGLE',
  610.                         'GRANDIN',
  611.                         'GRUNDIG',
  612.                         'HAIER',
  613.                         'HISENSE',
  614.                         'HOMIDO',
  615.                         'HUAWEI',
  616.                         'HP',
  617.                         'HTC',
  618.                         'INFOCUS',
  619.                         'JVC',
  620.                         'LA POSTE MOBILE',
  621.                         'LAZER',
  622.                         'LENOVO',
  623.                         'LG',
  624.                         'LISTO',
  625.                         'LOEWE',
  626.                         'NVIDIA',
  627.                         'OCULUS',
  628.                         'OPTOMA',
  629.                         'ORANGE',
  630.                         'PANASONIC',
  631.                         'PHILIPS',
  632.                         'PROLINE',
  633.                         'ROKU',
  634.                         'SABA',
  635.                         'SAMSUNG',
  636.                         'SCHNEIDER',
  637.                         'SFR',
  638.                         'SHARP',
  639.                         'SMARTTECK',
  640.                         'SONY',
  641.                         'SOSH',
  642.                         'TCL',
  643.                         'TELEFUNKEN',
  644.                         'THOMSON',
  645.                         'TOSHIBA',
  646.                         'VIEWSONIC',
  647.                         'VIVITEK',
  648.                         'WETEK',
  649.                         'WINDSOR',
  650.                         'XGIMI',
  651.                         'XIAOMI'
  652.                     ];
  653.                     break;
  654.                 case 'son':
  655.                     $arr = [
  656.                         'AKG',
  657.                         'ANTHEM',
  658.                         'ASTELL&KERN',
  659.                         'AUDEZE',
  660.                         'AUDIO-TECHNICA',
  661.                         'B&W',
  662.                         'BENQ',
  663.                         'BLUESOUND',
  664.                         'BOSE',
  665.                         'BOWERS&WILKINS',
  666.                         'CABASSE',
  667.                         'CAMBRIDGE',
  668.                         'COWON',
  669.                         'DALI',
  670.                         'DENON',
  671.                         'DEVIALET',
  672.                         'DUAL',
  673.                         'DUNE HD',
  674.                         'ELIPSON',
  675.                         'ELTAX',
  676.                         'EPSON',
  677.                         'FIIO',
  678.                         'FOCAL',
  679.                         'GRADO',
  680.                         'HARMAN KARDON',
  681.                         'HIFIMAN',
  682.                         'HIGHLAND AUDIO',
  683.                         'JAMO',
  684.                         'JBL',
  685.                         'JEAN-MARIE REYNAUD',
  686.                         'JVC',
  687.                         'KEF',
  688.                         'KLIPSCH',
  689.                         'LG',
  690.                         'LOEWE',
  691.                         'LUMENE',
  692.                         'MARANTZ',
  693.                         'MARSHALL',
  694.                         'MCINTOSH',
  695.                         'MEZE',
  696.                         'MONITOR AUDIO',
  697.                         'NAIM',
  698.                         'NETGEAR',
  699.                         'NORSTONE',
  700.                         'ONKYO',
  701.                         'OPPO',
  702.                         'OPTOMA',
  703.                         'ORTOFON',
  704.                         'PANASONIC',
  705.                         'PHILIPS',
  706.                         'PHILIPS HUE',
  707.                         'PIONEER',
  708.                         'PIONEER DJ',
  709.                         'PRO-JECT',
  710.                         'PURE',
  711.                         'REGA',
  712.                         'REL',
  713.                         'SAMSUNG',
  714.                         'SENNHEISER',
  715.                         'SHURE',
  716.                         'SONOS',
  717.                         'SONY',
  718.                         'SVS',
  719.                         'TANGENT',
  720.                         'THORENS',
  721.                         'VIVITEK',
  722.                         'VOGEL S',
  723.                         'YAMAHA',
  724.                         'ZAPPITI'
  725.                     ];
  726.                     break;
  727.                 case 'photo':
  728.                     $arr = [
  729.                         'BLACKMAGIC DESIGN',
  730.                         'BRINNO',
  731.                         'CAMLINK',
  732.                         'CANON',
  733.                         'DJI',
  734.                         'FUJIFILM',
  735.                         'GARMIN',
  736.                         'GOPRO',
  737.                         'HARMAN',
  738.                         'HASSELBLAD',
  739.                         'IMPOSSIBLE PROJECT',
  740.                         'INSTA360',
  741.                         'JVC',
  742.                         'KENWOOD',
  743.                         'KODAK POLAROID',
  744.                         'LEICA',
  745.                         'MEVO',
  746.                         'NIKKEI',
  747.                         'NIKON',
  748.                         'OLYMPUS',
  749.                         'PANASONIC',
  750.                         'PENTAX',
  751.                         'POLAROID',
  752.                         'RICOH',
  753.                         'ROLLEI',
  754.                         'SEALIFE',
  755.                         'SIGMA',
  756.                         'SONY',
  757.                         'WEEVIEW',
  758.                         'WONDLAN',
  759.                         'YI',
  760.                         'YUNEEC',
  761.                         'ZOOM'
  762.                     ];
  763.                     break;
  764.                 case 'bijou':
  765.                     $arr = [
  766.                         'ALPINA',
  767.                         'ADIDAS',
  768.                         'ALL BLACKS',
  769.                         'AM:PM',
  770.                         'AMALYS',
  771.                         'ANONIMO',
  772.                         'ARMANI EXCHANGE',
  773.                         'AUDEMARS PIGUET',
  774.                         'AVI-8',
  775.                         'BALL',
  776.                         'BAUME ET MERCIER',
  777.                         'BELL & ROSS',
  778.                         'BERING',
  779.                         'BLANCPAIN',
  780.                         'BOSS ORANGE',
  781.                         'BOUCHERON',
  782.                         'BOVET',
  783.                         'BRAUN',
  784.                         'BREGUET',
  785.                         'BREITLING',
  786.                         'BREMONT',
  787.                         'BRM',
  788.                         'BULGARI',
  789.                         'BULOVA',
  790.                         'CALVIN KLEIN',
  791.                         'CALYPSO',
  792.                         'CARL F. BUCHERER',
  793.                         'CARTIER',
  794.                         'CASIO',
  795.                         'CERRUTI 1881',
  796.                         'CERTUS',
  797.                         'CHANEL',
  798.                         'CHARLIE WATCH',
  799.                         'CHAUMET',
  800.                         'CHOPARD',
  801.                         'CHRISTIAN LACROIX',
  802.                         'CHRISTOPHE CLARET',
  803.                         'CITIZEN',
  804.                         'CLUSE',
  805.                         'CONCORD',
  806.                         'CORUM',
  807.                         'CUERVO Y SOBRINOS',
  808.                         'DANIEL WELLINGTON',
  809.                         'DE BETHUNE',
  810.                         'DIESEL',
  811.                         'DIOR',
  812.                         'DKNY',
  813.                         'DWYT',
  814.                         'EBEL',
  815.                         'EBERHARD & CO',
  816.                         'ELIXA',
  817.                         'EMPORIO ARMANI',
  818.                         'ETERNA',
  819.                         'F.P. JOURNE',
  820.                         'FESTINA',
  821.                         'FLIK FLAK',
  822.                         'FORTIS',
  823.                         'FOSSIL',
  824.                         'FRANCK MULLER',
  825.                         'FREDERIQUE CONSTANT',
  826.                         'FREEGUN',
  827.                         'GARMIN',
  828.                         'GC',
  829.                         'GIRARD-PERREGAUX',
  830.                         'GLASHÜTTE ORIGINAL',
  831.                         'GO - GIRL ONLY',
  832.                         'GRAHAM LONDON',
  833.                         'GREUBEL-FORSEY',
  834.                         'G-SHOCK',
  835.                         'GUCCI',
  836.                         'GUESS',
  837.                         'HAMILTON',
  838.                         'HANHART',
  839.                         'HARRY WINSTON',
  840.                         'HAUTLENCE',
  841.                         'HERMES',
  842.                         'HUBLOT',
  843.                         'HUGO',
  844.                         'HUGO BOSS',
  845.                         'HYT',
  846.                         'ICE-WATCH',
  847.                         'IWC',
  848.                         'JAEGER LECOULTRE',
  849.                         'JAQUET DROZ',
  850.                         'JEAN-PAUL GAULTIER',
  851.                         'JEANRICHARD',
  852.                         'KAPTEN & SON',
  853.                         'KENNETH COLE',
  854.                         'KNUT GADD',
  855.                         'KOMONO',
  856.                         'LACOSTE',
  857.                         'LANGE & SÖHNE',
  858.                         'LIP',
  859.                         'LONGINES',
  860.                         'LOTUS',
  861.                         'LOUIS ERARD',
  862.                         'LOUIS MOINET',
  863.                         'LOUIS VUITTON',
  864.                         'LULU CASTAGNETTE',
  865.                         'MASERATI',
  866.                         'MATWATCHES',
  867.                         'MAURICE LACROIX',
  868.                         'MB & F',
  869.                         'MEISTERSINGER',
  870.                         'MICHAEL KORS',
  871.                         'MICHEL HERBELIN',
  872.                         'MONDAINE',
  873.                         'MONTBLANC',
  874.                         'MORGAN',
  875.                         'MOSER',
  876.                         'MOVADO',
  877.                         'MVMT',
  878.                         'NIXON',
  879.                         'OLIVIA BURTON',
  880.                         'OMEGA',
  881.                         'OOZOO',
  882.                         'ORIS',
  883.                         'PANERAI',
  884.                         'PARMIGIANI FLEURIER',
  885.                         'PATEK PHILIPPE',
  886.                         'PAUL HEWITT',
  887.                         'PAUL PICOT',
  888.                         'PEQUIGNET',
  889.                         'PERRELET',
  890.                         'PIAGET',
  891.                         'PIERRE LANNIER',
  892.                         'POLICE',
  893.                         'PORSCHE DESIGN',
  894.                         'PULSAR',
  895.                         'RADO',
  896.                         'RAIDILLON',
  897.                         'RALF TECH WATCHES',
  898.                         'RALPH LAUREN',
  899.                         'RAYMOND WEIL',
  900.                         'RICHARD MILLE',
  901.                         'ROGER DUBUIS',
  902.                         'ROLEX',
  903.                         'ROMAIN JEROME',
  904.                         'ROSEFIELD',
  905.                         'SAINT HONORE',
  906.                         'SEIKO',
  907.                         'SEVENFRIDAY',
  908.                         'SKAGEN',
  909.                         'SPEAKE-MARIN',
  910.                         'STORM',
  911.                         'SUPERDRY',
  912.                         'SWATCH',
  913.                         'TAG HEUER',
  914.                         'TED LAPIDUS',
  915.                         'TEKDAY',
  916.                         'THOM OLSON',
  917.                         'TIMEX',
  918.                         'TINTIN',
  919.                         'TISSOT',
  920.                         'TOM HOPE',
  921.                         'TOMMY HILFIGER',
  922.                         'TRIWA',
  923.                         'TUDOR',
  924.                         'ULYSSE NARDIN',
  925.                         'URWERK',
  926.                         'VACHERON CONSTANTIN',
  927.                         'VAN CLEEF & ARPELS',
  928.                         'VICTORINOX',
  929.                         'VULCAIN',
  930.                         'WEWOOD',
  931.                         'WILLIAM L 1985',
  932.                         'YEMA',
  933.                         'ZENITH'
  934.                     ];
  935.                     break;
  936.                 case 'electromenager':
  937.                     $arr = [
  938.                         'AEG',
  939.                         'AIRLUX',
  940.                         'AMICA',
  941.                         'ARIETE',
  942.                         'ARISTON',
  943.                         'ARTHUR MARTIN',
  944.                         'ASKO',
  945.                         'ASTORIA',
  946.                         'AYA ',
  947.                         'BEEPER',
  948.                         'BEKO',
  949.                         'BOMPANI',
  950.                         'BOSCH',
  951.                         'BRANDT',
  952.                         'BRAUN',
  953.                         'CALOR',
  954.                         'CANDY',
  955.                         'CONTINENTAL EDISON ',
  956.                         'DAEWOO',
  957.                         'DE DIETRICH',
  958.                         'DOMOCLIP',
  959.                         'DYSON',
  960.                         'ECOVACS',
  961.                         'ELECTROLUX',
  962.                         'ELICA',
  963.                         'ESSENTIEL B ',
  964.                         'E-ZICOM',
  965.                         'FAR ',
  966.                         'FAURE',
  967.                         'H. KOENIG',
  968.                         'HAIER',
  969.                         'HARPER',
  970.                         'HISENSE',
  971.                         'HOOVER',
  972.                         'HOTPOINT',
  973.                         'INDESIT',
  974.                         'IROBOT',
  975.                         'JVC',
  976.                         'KENWOOD',
  977.                         'KITCHENAID',
  978.                         'KRUPS',
  979.                         'LA GERMANIA',
  980.                         'LADEN',
  981.                         'LAGRANGE',
  982.                         'LIEBHERR',
  983.                         'LISTO ',
  984.                         'MAGIMIX',
  985.                         'MIELE',
  986.                         'MONEUAL',
  987.                         'MOULINEX',
  988.                         'NEFF',
  989.                         'NESTLE',
  990.                         'NOVA',
  991.                         'PHILIPS',
  992.                         'POLTI',
  993.                         'RIVIERA & BAR',
  994.                         'RIVIERA ET BAR',
  995.                         'ROSIERES',
  996.                         'ROWENTA',
  997.                         'RUSSEL HOBBS',
  998.                         'SABA ',
  999.                         'SAUTER',
  1000.                         'SCHAUB-LORENZ',
  1001.                         'SCHOLTES',
  1002.                         'SEB',
  1003.                         'SEVERIN',
  1004.                         'SIEMENS',
  1005.                         'SMEG',
  1006.                         'STOVES',
  1007.                         'TEFAL',
  1008.                         'TERRAILLON',
  1009.                         'TRIOMPH',
  1010.                         'TRISTAR',
  1011.                         'VALBERG ',
  1012.                         'VAX',
  1013.                         'VEDETTE',
  1014.                         'VORWERK',
  1015.                         'WEBER',
  1016.                         'WHIRLPOOL',
  1017.                         'WIKO',
  1018.                         'ZANUSSI'
  1019.                     ];
  1020.                     break;
  1021.                 case 'mobilier':
  1022.                     $arr = [
  1023.                         '3SUISSES',
  1024.                         '4 PIEDS',
  1025.                         'ALINEA',
  1026.                         'AMAZON',
  1027.                         'AUCHAN',
  1028.                         'BO CONCEPT',
  1029.                         'BRICO DEPOT',
  1030.                         'BUT',
  1031.                         'CARREFOUR',
  1032.                         'CASSINA',
  1033.                         'CDISCOUNT',
  1034.                         'CONFORAMA',
  1035.                         'DARTY',
  1036.                         'DE LAMAISON',
  1037.                         'FENDI CASA',
  1038.                         'FLY',
  1039.                         'GAUTIER',
  1040.                         'HABITAT',
  1041.                         'IKEA',
  1042.                         'JARDILAND',
  1043.                         'KARTELL',
  1044.                         'LA REDOUTE',
  1045.                         'LE BON COIN',
  1046.                         'LECLERC',
  1047.                         'LEROY MERLIN',
  1048.                         'LIDL',
  1049.                         'LIGNE ROSET',
  1050.                         'MADE',
  1051.                         'MAISONS DU MONDE',
  1052.                         'MUJI',
  1053.                         'POLTRON ET SOFA',
  1054.                         'POLTRONA FRAU',
  1055.                         'ROCHES BOBOIS',
  1056.                         'SUPER U, HYPER U',
  1057.                         'TOUSALON'
  1058.                     ];
  1059.                     break;
  1060.                 case 'divers':
  1061.                 case 'collection':
  1062.                 case 'tableau':
  1063.                     $arr = [];
  1064.                     break;
  1065.                 case 'jardinage':
  1066.                     $arr = [
  1067.                         'AEG',
  1068.                         'BLACK&DECKER',
  1069.                         'BOSCH',
  1070.                         'DEWALT',
  1071.                         'DREMEL',
  1072.                         'ERLO',
  1073.                         'FACOM',
  1074.                         'FESTOOL',
  1075.                         'FISCHER',
  1076.                         'FISKARS',
  1077.                         'FLYMO',
  1078.                         'GARDENA',
  1079.                         'GRIZZLY',
  1080.                         'HAEMMERLIN',
  1081.                         'HILTI',
  1082.                         'HITACHI',
  1083.                         'HUSQVARNA',
  1084.                         'HYMER',
  1085.                         'KARCHER',
  1086.                         'KITY',
  1087.                         'LEATHERMAN',
  1088.                         'MAKITA',
  1089.                         'MC CULLOCH',
  1090.                         'MECAFER',
  1091.                         'METABO',
  1092.                         'NILFISK',
  1093.                         'PARKSIDE',
  1094.                         'POWERFIX',
  1095.                         'RENOVATOR',
  1096.                         'RYOBI',
  1097.                         'SAM',
  1098.                         'SILVERLINE',
  1099.                         'SKIL',
  1100.                         'STANLEY',
  1101.                         'STIHL',
  1102.                         'VIRAX',
  1103.                         'WAGNER',
  1104.                         'WIHA',
  1105.                         'WOLFCRAFT'
  1106.                     ];
  1107.                     break;
  1108.                 case 'musique':
  1109.                     $arr = [
  1110.                         'BUFFET-CRAMPON',
  1111.                         'CASIO',
  1112.                         'FENDER',
  1113.                         'GIBSON',
  1114.                         'GRETSCH',
  1115.                         'IBANEZ',
  1116.                         'LEBLANC',
  1117.                         'LUDWIG',
  1118.                         'NOBLET',
  1119.                         'PEARL',
  1120.                         'PLEYEL',
  1121.                         'SELMER',
  1122.                         'SONOR',
  1123.                         'STEINWAY',
  1124.                         'YAMAHA',
  1125.                         'YOUNG CHANG'
  1126.                     ];
  1127.                     break;
  1128.                 case 'chasse':
  1129.                     $arr = [
  1130.                         'ANSCHÜTZ',
  1131.                         'BENELLI',
  1132.                         'BERETTA',
  1133.                         'BLASER',
  1134.                         'BROWNING',
  1135.                         'CHAPUIS',
  1136.                         'COLT',
  1137.                         'CZ',
  1138.                         'DESERT EAGLE',
  1139.                         'DIANA',
  1140.                         'FN',
  1141.                         'FRANCHI',
  1142.                         'GLOCK',
  1143.                         'HECKLER & KOCH',
  1144.                         'HK',
  1145.                         'MANUFRANCE',
  1146.                         'MIROKU',
  1147.                         'MOSSBERG',
  1148.                         'REMINGTON',
  1149.                         'ROBUST',
  1150.                         'ROHM',
  1151.                         'ROTTWEIL',
  1152.                         'RUGER',
  1153.                         'SAUER',
  1154.                         'SCORPIO',
  1155.                         'SIG SAUER',
  1156.                         'SMITH & WESSON',
  1157.                         'STEYR',
  1158.                         'TANFOGLIO',
  1159.                         'TAURUS',
  1160.                         'TOKAREV',
  1161.                         'VERNEY-CARRON',
  1162.                         'WALTHER',
  1163.                         'WINCHESTER',
  1164.                         'ZASTAVA'
  1165.                     ];
  1166.                     break;
  1167.                 case 'jouet':
  1168.                     $arr = [
  1169.                         'ATARI',
  1170.                         'ATGAMES',
  1171.                         'BALLY',
  1172.                         'BONZINI',
  1173.                         'BUFFALO',
  1174.                         'CHEVILLOTTE',
  1175.                         'DEBUCHY',
  1176.                         'DPT',
  1177.                         'EUROBILLARDS',
  1178.                         'FUSION',
  1179.                         'GOTTLIEB',
  1180.                         'LAFUGE',
  1181.                         'LUCI',
  1182.                         'MATTEL',
  1183.                         'MICROSOFT',
  1184.                         'MIDWAY',
  1185.                         'NINTENDO',
  1186.                         'NVIDIA',
  1187.                         'PETIOT',
  1188.                         'RASPBERRY',
  1189.                         'SEGA',
  1190.                         'SNK',
  1191.                         'SONY',
  1192.                         'STELA',
  1193.                         'STERN',
  1194.                         'SULPIE',
  1195.                         'SUPER NES',
  1196.                         'VTECH',
  1197.                         'WILLIAMS'
  1198.                     ];
  1199.                     break;
  1200.                 case 'sport':
  1201.                     $arr = [
  1202.                         'ALFAWISE',
  1203.                         'ALPHA ONE',
  1204.                         'ATOMIC',
  1205.                         'BEARCAT',
  1206.                         'BEBK',
  1207.                         'BIKEROAD',
  1208.                         'BLIZZARD',
  1209.                         'BLUEWHEEL',
  1210.                         'COLORWAY',
  1211.                         'DIRT BIKE',
  1212.                         'DYNASTAR',
  1213.                         'E-ROAD',
  1214.                         'ETWOW BOOSTER',
  1215.                         'EXPRIT',
  1216.                         'FISCHER',
  1217.                         'FORMULA K',
  1218.                         'GOTWAY',
  1219.                         'HEAD',
  1220.                         'HUMMER',
  1221.                         'INMOTION',
  1222.                         'IPKARTING',
  1223.                         'K2',
  1224.                         'KAWASAKI',
  1225.                         'KEROX',
  1226.                         'KINGSONG',
  1227.                         'KOSMIC',
  1228.                         'KUGOO',
  1229.                         'LYNX',
  1230.                         'MARKBOARD',
  1231.                         'MINIMOTORS',
  1232.                         'MINIMULA',
  1233.                         'NINEBOT',
  1234.                         'NORDICA',
  1235.                         'NORDICA',
  1236.                         'OK1',
  1237.                         'PANTHERA',
  1238.                         'PIKI',
  1239.                         'PIT BIKE',
  1240.                         'PRAGA',
  1241.                         'RIOT',
  1242.                         'ROSSIGNOL',
  1243.                         'SALOMON',
  1244.                         'SCOTT',
  1245.                         'SEADOO',
  1246.                         'SEGWAY',
  1247.                         'SODIKART',
  1248.                         'STREET MOTION',
  1249.                         'TONYKART',
  1250.                         'URBAN GLIDE RIDE',
  1251.                         'VÖLKL',
  1252.                         'WIIZZEE',
  1253.                         'WINDGOO',
  1254.                         'XIAOMI',
  1255.                         'YAMAHA',
  1256.                         'ZR'
  1257.                     ];
  1258.                     break;
  1259.                 case 'hitech':
  1260.                     $arr = [
  1261.                         'ACER',
  1262.                         'AMAZON',
  1263.                         'APPLE',
  1264.                         'ASUS',
  1265.                         'BOSE',
  1266.                         'DELL',
  1267.                         'ESSENTIELB',
  1268.                         'FITBIT',
  1269.                         'GOOGLE',
  1270.                         'HOMIDO',
  1271.                         'HONOR',
  1272.                         'HP',
  1273.                         'HTC',
  1274.                         'HUAWEI',
  1275.                         'JBL',
  1276.                         'LENOVO',
  1277.                         'LG',
  1278.                         'LIBRATONE',
  1279.                         'MARSHALL',
  1280.                         'NINETY7',
  1281.                         'NOKIA',
  1282.                         'OCULUS',
  1283.                         'ONKYO',
  1284.                         'PEBBLE',
  1285.                         'PULSE HR',
  1286.                         'RIVA',
  1287.                         'ROAV',
  1288.                         'SAMSUNG',
  1289.                         'SONOS',
  1290.                         'SONY',
  1291.                         'TOM TOM',
  1292.                         'ULTIMATE EARS',
  1293.                         'WIKO',
  1294.                         'XIAOMI',
  1295.                         'YUZZ IT'
  1296.                     ];
  1297.                     break;
  1298.                 case 'velo':
  1299.                     $arr = [
  1300.                         'ALEX SINGER',
  1301.                         'ATALA',
  1302.                         'ATOM',
  1303.                         'BH BIKES',
  1304.                         'BIANCHI',
  1305.                         'BIKE BY ME',
  1306.                         'BMC',
  1307.                         'BTWIN',
  1308.                         'CANNONDALE',
  1309.                         'CANYON',
  1310.                         'CARRARO CICLI',
  1311.                         'CATTIN',
  1312.                         'CERVÉLO',
  1313.                         'CERVÉLO CYCLES',
  1314.                         'CKT',
  1315.                         'COLNAGO',
  1316.                         'COMMENÇAL',
  1317.                         'CONWAY',
  1318.                         'CREME',
  1319.                         'CRUPI BMX RACING',
  1320.                         'CUBE',
  1321.                         'CUBE BIKES',
  1322.                         'CYFAC',
  1323.                         'DANIEL CATTIN',
  1324.                         'DECATHLON',
  1325.                         'DIAMONDBACK',
  1326.                         'DK BICYCLES',
  1327.                         'EARLY RIDER',
  1328.                         'EDDY MERCKX',
  1329.                         'ELECTRA',
  1330.                         'FELT BICYCLES',
  1331.                         'FIXIE INC',
  1332.                         'FKC',
  1333.                         'FOCUS',
  1334.                         'GAZELLE',
  1335.                         'GHOST',
  1336.                         'GIANT',
  1337.                         'GILLES BERTHOUD',
  1338.                         'GITANE',
  1339.                         'GRADE 9',
  1340.                         'GT BICYCLES',
  1341.                         'HAIBIKE',
  1342.                         'I:SY',
  1343.                         'IN BO',
  1344.                         'KALKHOFF',
  1345.                         'KAZAM',
  1346.                         'KESTREL',
  1347.                         'KIDDIMOTO',
  1348.                         'KONA',
  1349.                         'KTM',
  1350.                         'LA TORPILLE',
  1351.                         'LAPIERRE',
  1352.                         'LEVACON',
  1353.                         'LITESPEED BICYCLES',
  1354.                         'LOOK CYCLE',
  1355.                         'MADD GEAR',
  1356.                         'MARIN',
  1357.                         'MARIN BIKES',
  1358.                         'MBK',
  1359.                         'MERCIER',
  1360.                         'MERIDA',
  1361.                         'MERLIN BIKES',
  1362.                         'MONDRAKER',
  1363.                         'NAKAMURA',
  1364.                         'NS BIKES',
  1365.                         'ORBEA',
  1366.                         'ORTLER',
  1367.                         'PEUGEOT CYCLES',
  1368.                         'PIERRE PERRIN',
  1369.                         'PINARELLO CICLI',
  1370.                         'PLANET X BIKES',
  1371.                         'PRINCIPIA BIKES',
  1372.                         'PUKY',
  1373.                         'QBIKES',
  1374.                         'QU-AX',
  1375.                         'RAM',
  1376.                         'RIDLEY BIKES',
  1377.                         'RONDO',
  1378.                         'SALAMANDRE CYCLE',
  1379.                         'SANTA CRUZ',
  1380.                         'S`COOL',
  1381.                         'SCOTT',
  1382.                         'SERGE MANNHEIM',
  1383.                         'SERIOUS',
  1384.                         'SLEX',
  1385.                         'SPECIALIZED BICYCLE',
  1386.                         'STEREO',
  1387.                         'STORCK BICYCLE',
  1388.                         'STRIDER',
  1389.                         'TERN',
  1390.                         'TIME SPORT',
  1391.                         'TREK',
  1392.                         'VAGABONDE CYCLES',
  1393.                         'VERMONT',
  1394.                         'VERMONT JERSEY',
  1395.                         'VICTOIRE CYCLES',
  1396.                         'VOTEC',
  1397.                         'WHEELER',
  1398.                         'WILIER TRIESTINA',
  1399.                         'WINORA',
  1400.                         'WISHBONE'
  1401.                     ];
  1402.                     break;
  1403.             }
  1404.         }
  1405.         if ($withOther) {
  1406.             $arr array_merge($arr, [
  1407.                 $withOther,
  1408.             ]);
  1409.         }
  1410.         $arr array_combine($arr$arr);
  1411.         asort($arr);
  1412.         return count($arr) > array_merge($arr, [
  1413.             self::OTHER => self::OTHER,
  1414.         ]) : $arr;
  1415.     }
  1416.     public static function getCategories()
  1417.     {
  1418.         $arr = [
  1419.             "TELEPHONIE" => "telephonie",
  1420.             "INFORMATIQUE / TABLETTE" => "informatique",
  1421.             "TV / MULTIMEDIA" => "tv",
  1422.             "HIFI / SON" => "son",
  1423.             "PHOTO / VIDEO" => "photo",
  1424.             "BIJOU / MONTRE" => "bijou",
  1425.             "ELECTROMENAGER" => "electromenager",
  1426.             "MOBILIER" => "mobilier",
  1427.             "ŒUVRE D’ART / TABLEAU" => "tableau",
  1428.             "OUTILLAGE / JARDINAGE" => "jardinage",
  1429.             "INSTRUMENT DE MUSIQUE" => "musique",
  1430.             "ARME DE COLLECTION / CHASSE / TIR SPORTIF" => "chasse",
  1431.             "JEUX" => "jouet",
  1432.             "SPORT / LOISIR" => "sport",
  1433.             "HITECH / OBJET CONNECTE" => "hitech",
  1434.             "VÉLO" => "velo",
  1435.             "COLLECTION" => "collection",
  1436.             "DIVERS" => "divers"
  1437.         ];
  1438.         return $arr;
  1439.     }
  1440.     /**
  1441.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1442.      * of 'UploadedFile' is injected into this setter to trigger the  update. If this
  1443.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1444.      * must be able to accept an instance of 'File' as the bundle will inject one here
  1445.      * during Doctrine hydration.
  1446.      *
  1447.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $image
  1448.      */
  1449.     public function setItemPhotoFile(File $image null)
  1450.     {
  1451.         $this->itemPhotoFile $image;
  1452.         if (null !== $image) {
  1453.             // It is required that at least one field changes if you are using doctrine
  1454.             // otherwise the event listeners won't be called and the file is lost
  1455.             $this->itemPhotoFileUpdatedAt = new \DateTime();
  1456.         }
  1457.     }
  1458.     public function getItemPhotoFile()
  1459.     {
  1460.         return $this->itemPhotoFile;
  1461.     }
  1462.     /**
  1463.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1464.      * of 'UploadedFile' is injected into this setter to trigger the  update. If this
  1465.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1466.      * must be able to accept an instance of 'File' as the bundle will inject one here
  1467.      * during Doctrine hydration.
  1468.      *
  1469.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $image
  1470.      */
  1471.     public function setItemInvoiceFile(File $image null)
  1472.     {
  1473.         $this->itemInvoiceFile $image;
  1474.         if (null !== $image) {
  1475.             // It is required that at least one field changes if you are using doctrine
  1476.             // otherwise the event listeners won't be called and the file is lost
  1477.             $this->itemInvoiceFileUpdatedAt = new \DateTime();
  1478.         }
  1479.     }
  1480.     public function getItemInvoiceFile()
  1481.     {
  1482.         return $this->itemInvoiceFile;
  1483.     }
  1484.     /**
  1485.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1486.      * of 'UploadedFile' is injected into this setter to trigger the  update. If this
  1487.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1488.      * must be able to accept an instance of 'File' as the bundle will inject one here
  1489.      * during Doctrine hydration.
  1490.      *
  1491.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $image
  1492.      */
  1493.     public function setItemBubbleCodeFile(File $image null)
  1494.     {
  1495.         $this->itemBubbleCodeFile $image;
  1496.         if (null !== $image) {
  1497.             // It is required that at least one field changes if you are using doctrine
  1498.             // otherwise the event listeners won't be called and the file is lost
  1499.             $this->itemBubbleCodeFileUpdatedAt = new \DateTime();
  1500.         }
  1501.     }
  1502.     public function getItemBubbleCodeFile()
  1503.     {
  1504.         return $this->itemBubbleCodeFile;
  1505.     }
  1506.     /**
  1507.      * Get id
  1508.      *
  1509.      * @return int
  1510.      */
  1511.     public function getId()
  1512.     {
  1513.         return $this->id;
  1514.     }
  1515.     /**
  1516.      * Set statut
  1517.      *
  1518.      * @param string $statut
  1519.      *
  1520.      * @return Item
  1521.      */
  1522.     public function setStatut($statut)
  1523.     {
  1524.         $this->statut $statut;
  1525.         return $this;
  1526.     }
  1527.     /**
  1528.      * Get statut
  1529.      *
  1530.      * @return string
  1531.      */
  1532.     public function getStatut()
  1533.     {
  1534.         return $this->statut;
  1535.     }
  1536.     /**
  1537.      * Set name
  1538.      *
  1539.      * @param string $name
  1540.      *
  1541.      * @return Item
  1542.      */
  1543.     public function setName($name)
  1544.     {
  1545.         $this->name $name;
  1546.         return $this;
  1547.     }
  1548.     /**
  1549.      * Get name
  1550.      *
  1551.      * @return string
  1552.      */
  1553.     public function getName()
  1554.     {
  1555.         return $this->name;
  1556.     }
  1557.     /**
  1558.      * Set type
  1559.      *
  1560.      * @param string $type
  1561.      *
  1562.      * @return Item
  1563.      */
  1564.     public function setType($type)
  1565.     {
  1566.         $this->type $type;
  1567.         return $this;
  1568.     }
  1569.     /**
  1570.      * Get type
  1571.      *
  1572.      * @return string
  1573.      */
  1574.     public function getType()
  1575.     {
  1576.         return $this->type;
  1577.     }
  1578.     /**
  1579.      * Set brand
  1580.      *
  1581.      * @param string $brand
  1582.      *
  1583.      * @return Item
  1584.      */
  1585.     public function setBrand($brand)
  1586.     {
  1587.         $this->brand $brand;
  1588.         return $this;
  1589.     }
  1590.     /**
  1591.      * Get brand
  1592.      *
  1593.      * @return string
  1594.      */
  1595.     public function getBrand()
  1596.     {
  1597.         return $this->brand;
  1598.     }
  1599.     /**
  1600.      * Set modelNumber
  1601.      *
  1602.      * @param string $modelNumber
  1603.      *
  1604.      * @return Item
  1605.      */
  1606.     public function setModelNumber($modelNumber)
  1607.     {
  1608.         $this->modelNumber $modelNumber;
  1609.         return $this;
  1610.     }
  1611.     /**
  1612.      * Get modelNumber
  1613.      *
  1614.      * @return string
  1615.      */
  1616.     public function getModelNumber()
  1617.     {
  1618.         return $this->modelNumber;
  1619.     }
  1620.     /**
  1621.      * Set serialNumber
  1622.      *
  1623.      * @param string $serialNumber
  1624.      *
  1625.      * @return Item
  1626.      */
  1627.     public function setSerialNumber($serialNumber)
  1628.     {
  1629.         $this->serialNumber $serialNumber;
  1630.         return $this;
  1631.     }
  1632.     /**
  1633.      * Get serialNumber
  1634.      *
  1635.      * @return string
  1636.      */
  1637.     public function getSerialNumber()
  1638.     {
  1639.         return $this->serialNumber;
  1640.     }
  1641.     /**
  1642.      * Set category
  1643.      *
  1644.      * @param string $category
  1645.      *
  1646.      * @return Item
  1647.      */
  1648.     public function setCategory($category)
  1649.     {
  1650.         $this->category $category;
  1651.         return $this;
  1652.     }
  1653.     /**
  1654.      * Get category
  1655.      *
  1656.      * @return string
  1657.      */
  1658.     public function getCategory()
  1659.     {
  1660.         return $this->category;
  1661.     }
  1662.     /**
  1663.      * Set estimateValue
  1664.      *
  1665.      * @param string $estimateValue
  1666.      *
  1667.      * @return Item
  1668.      */
  1669.     public function setEstimateValue($estimateValue)
  1670.     {
  1671.         $this->estimateValue $estimateValue;
  1672.         return $this;
  1673.     }
  1674.     /**
  1675.      * Get estimateValue
  1676.      *
  1677.      * @return string
  1678.      */
  1679.     public function getEstimateValue()
  1680.     {
  1681.         return $this->estimateValue;
  1682.     }
  1683.     /**
  1684.      * Set comment
  1685.      *
  1686.      * @param string $comment
  1687.      *
  1688.      * @return Item
  1689.      */
  1690.     public function setComment($comment)
  1691.     {
  1692.         $this->comment $comment;
  1693.         return $this;
  1694.     }
  1695.     /**
  1696.      * Get comment
  1697.      *
  1698.      * @return string
  1699.      */
  1700.     public function getComment()
  1701.     {
  1702.         return $this->comment;
  1703.     }
  1704.     /**
  1705.      * Set securitySticker
  1706.      *
  1707.      * @param string $securitySticker
  1708.      *
  1709.      * @return Item
  1710.      */
  1711.     public function setSecuritySticker($securitySticker)
  1712.     {
  1713.         $this->securitySticker $securitySticker;
  1714.         return $this;
  1715.     }
  1716.     /**
  1717.      * Get securitySticker
  1718.      *
  1719.      * @return string
  1720.      */
  1721.     public function getSecuritySticker()
  1722.     {
  1723.         return $this->securitySticker;
  1724.     }
  1725.     /**
  1726.      * Set itemBubbleCodeFileName
  1727.      *
  1728.      * @param string $itemBubbleCodeFileName
  1729.      *
  1730.      * @return Item
  1731.      */
  1732.     public function setItemBubbleCodeFileName($itemBubbleCodeFileName)
  1733.     {
  1734.         $this->itemBubbleCodeFileName $itemBubbleCodeFileName;
  1735.         return $this;
  1736.     }
  1737.     /**
  1738.      * Get itemBubbleCodeFileName
  1739.      *
  1740.      * @return string
  1741.      */
  1742.     public function getItemBubbleCodeFileName()
  1743.     {
  1744.         return $this->itemBubbleCodeFileName;
  1745.     }
  1746.     /**
  1747.      * Set itemBubbleCodeFileSize
  1748.      *
  1749.      * @param integer $itemBubbleCodeFileSize
  1750.      *
  1751.      * @return Item
  1752.      */
  1753.     public function setItemBubbleCodeFileSize($itemBubbleCodeFileSize)
  1754.     {
  1755.         $this->itemBubbleCodeFileSize $itemBubbleCodeFileSize;
  1756.         return $this;
  1757.     }
  1758.     /**
  1759.      * Get itemBubbleCodeFileSize
  1760.      *
  1761.      * @return integer
  1762.      */
  1763.     public function getItemBubbleCodeFileSize()
  1764.     {
  1765.         return $this->itemBubbleCodeFileSize;
  1766.     }
  1767.     /**
  1768.      * Set itemBubbleCodeFileUpdatedAt
  1769.      *
  1770.      * @param DateTime $itemBubbleCodeFileUpdatedAt
  1771.      *
  1772.      * @return Item
  1773.      */
  1774.     public function setItemBubbleCodeFileUpdatedAt($itemBubbleCodeFileUpdatedAt)
  1775.     {
  1776.         $this->itemBubbleCodeFileUpdatedAt $itemBubbleCodeFileUpdatedAt;
  1777.         return $this;
  1778.     }
  1779.     /**
  1780.      * Get itemBubbleCodeFileUpdatedAt
  1781.      *
  1782.      * @return DateTime
  1783.      */
  1784.     public function getItemBubbleCodeFileUpdatedAt()
  1785.     {
  1786.         return $this->itemBubbleCodeFileUpdatedAt;
  1787.     }
  1788.     /**
  1789.      * Set itemPhotoFileName
  1790.      *
  1791.      * @param string $itemPhotoFileName
  1792.      *
  1793.      * @return Item
  1794.      */
  1795.     public function setItemPhotoFileName($itemPhotoFileName)
  1796.     {
  1797.         $this->itemPhotoFileName $itemPhotoFileName;
  1798.         return $this;
  1799.     }
  1800.     /**
  1801.      * Get itemPhotoFileName
  1802.      *
  1803.      * @return string
  1804.      */
  1805.     public function getItemPhotoFileName()
  1806.     {
  1807.         return $this->itemPhotoFileName;
  1808.     }
  1809.     /**
  1810.      * Set itemPhotoFileSize
  1811.      *
  1812.      * @param integer $itemPhotoFileSize
  1813.      *
  1814.      * @return Item
  1815.      */
  1816.     public function setItemPhotoFileSize($itemPhotoFileSize)
  1817.     {
  1818.         $this->itemPhotoFileSize $itemPhotoFileSize;
  1819.         return $this;
  1820.     }
  1821.     /**
  1822.      * Get itemPhotoFileSize
  1823.      *
  1824.      * @return integer
  1825.      */
  1826.     public function getItemPhotoFileSize()
  1827.     {
  1828.         return $this->itemPhotoFileSize;
  1829.     }
  1830.     /**
  1831.      * Set itemPhotoFileUpdatedAt
  1832.      *
  1833.      * @param DateTime $itemPhotoFileUpdatedAt
  1834.      *
  1835.      * @return Item
  1836.      */
  1837.     public function setItemPhotoFileUpdatedAt($itemPhotoFileUpdatedAt)
  1838.     {
  1839.         $this->itemPhotoFileUpdatedAt $itemPhotoFileUpdatedAt;
  1840.         return $this;
  1841.     }
  1842.     /**
  1843.      * Get itemPhotoFileUpdatedAt
  1844.      *
  1845.      * @return DateTime
  1846.      */
  1847.     public function getItemPhotoFileUpdatedAt()
  1848.     {
  1849.         return $this->itemPhotoFileUpdatedAt;
  1850.     }
  1851.     /**
  1852.      * Set itemInvoiceFileName
  1853.      *
  1854.      * @param string $itemInvoiceFileName
  1855.      *
  1856.      * @return Item
  1857.      */
  1858.     public function setItemInvoiceFileName($itemInvoiceFileName)
  1859.     {
  1860.         $this->itemInvoiceFileName $itemInvoiceFileName;
  1861.         return $this;
  1862.     }
  1863.     /**
  1864.      * Get itemInvoiceFileName
  1865.      *
  1866.      * @return string
  1867.      */
  1868.     public function getItemInvoiceFileName()
  1869.     {
  1870.         return $this->itemInvoiceFileName;
  1871.     }
  1872.     /**
  1873.      * Set itemInvoiceFileSize
  1874.      *
  1875.      * @param integer $itemInvoiceFileSize
  1876.      *
  1877.      * @return Item
  1878.      */
  1879.     public function setItemInvoiceFileSize($itemInvoiceFileSize)
  1880.     {
  1881.         $this->itemInvoiceFileSize $itemInvoiceFileSize;
  1882.         return $this;
  1883.     }
  1884.     /**
  1885.      * Get itemInvoiceFileSize
  1886.      *
  1887.      * @return integer
  1888.      */
  1889.     public function getItemInvoiceFileSize()
  1890.     {
  1891.         return $this->itemInvoiceFileSize;
  1892.     }
  1893.     /**
  1894.      * Set itemInvoiceFileUpdatedAt
  1895.      *
  1896.      * @param DateTime $itemInvoiceFileUpdatedAt
  1897.      *
  1898.      * @return Item
  1899.      */
  1900.     public function setItemInvoiceFileUpdatedAt($itemInvoiceFileUpdatedAt)
  1901.     {
  1902.         $this->itemInvoiceFileUpdatedAt $itemInvoiceFileUpdatedAt;
  1903.         return $this;
  1904.     }
  1905.     /**
  1906.      * Get itemInvoiceFileUpdatedAt
  1907.      *
  1908.      * @return DateTime
  1909.      */
  1910.     public function getItemInvoiceFileUpdatedAt()
  1911.     {
  1912.         return $this->itemInvoiceFileUpdatedAt;
  1913.     }
  1914.     /**
  1915.      * Set user
  1916.      *
  1917.      * @param User $user
  1918.      *
  1919.      * @return Item
  1920.      */
  1921.     public function setUser(User $user)
  1922.     {
  1923.         $this->user $user;
  1924.         return $this;
  1925.     }
  1926.     /**
  1927.      * Get user
  1928.      *
  1929.      * @return User|null
  1930.      */
  1931.     public function getUser(): ?User
  1932.     {
  1933.         return $this->user;
  1934.     }
  1935.     /**
  1936.      * Set createdAt
  1937.      *
  1938.      * @param DateTime $createdAt
  1939.      *
  1940.      * @return Item
  1941.      */
  1942.     public function setCreatedAt($createdAt)
  1943.     {
  1944.         $this->createdAt $createdAt;
  1945.         return $this;
  1946.     }
  1947.     /**
  1948.      * Get createdAt
  1949.      *
  1950.      * @return DateTime
  1951.      */
  1952.     public function getCreatedAt()
  1953.     {
  1954.         return $this->createdAt;
  1955.     }
  1956.     /**
  1957.      * Add itemPhoto
  1958.      *
  1959.      * @param \App\Entity\ItemPhoto $itemPhoto
  1960.      *
  1961.      * @return Item
  1962.      */
  1963.     public function addItemPhoto(\App\Entity\ItemPhoto $itemPhoto)
  1964.     {
  1965.         $this->itemPhotos[] = $itemPhoto;
  1966.         $itemPhoto->setItem($this);
  1967.         return $this;
  1968.     }
  1969.     /**
  1970.      * Remove itemPhoto
  1971.      *
  1972.      * @param \App\Entity\ItemPhoto $itemPhoto
  1973.      */
  1974.     public function removeItemPhoto(\App\Entity\ItemPhoto $itemPhoto)
  1975.     {
  1976.         $this->itemPhotos->removeElement($itemPhoto);
  1977.     }
  1978.     /**
  1979.      * Get itemPhotos
  1980.      *
  1981.      * @return \Doctrine\Common\Collections\Collection
  1982.      */
  1983.     public function getItemPhotos()
  1984.     {
  1985.         return $this->itemPhotos;
  1986.     }
  1987.     /**
  1988.      * Add goodAssignement
  1989.      *
  1990.      * @param \App\Entity\GoodAssignement $goodAssignement
  1991.      *
  1992.      * @return Item
  1993.      */
  1994.     public function addGoodAssignement(\App\Entity\GoodAssignement $goodAssignement)
  1995.     {
  1996.         $this->goodAssignements[] = $goodAssignement;
  1997.         return $this;
  1998.     }
  1999.     /**
  2000.      * Remove goodAssignement
  2001.      *
  2002.      * @param \App\Entity\GoodAssignement $goodAssignement
  2003.      */
  2004.     public function removeGoodAssignement(\App\Entity\GoodAssignement $goodAssignement)
  2005.     {
  2006.         $this->goodAssignements->removeElement($goodAssignement);
  2007.     }
  2008.     /**
  2009.      * Get goodAssignements
  2010.      *
  2011.      * @return \Doctrine\Common\Collections\Collection
  2012.      */
  2013.     public function getGoodAssignements()
  2014.     {
  2015.         return $this->goodAssignements;
  2016.     }
  2017.     /**
  2018.      * Set goodAssignement
  2019.      *
  2020.      * @param \App\Entity\GoodAssignement $goodAssignement
  2021.      *
  2022.      * @return Item
  2023.      */
  2024.     public function setGoodAssignement(\App\Entity\GoodAssignement $goodAssignement null)
  2025.     {
  2026.         $this->goodAssignement $goodAssignement;
  2027.         return $this;
  2028.     }
  2029.     /**
  2030.      * Get goodAssignement
  2031.      *
  2032.      * @return \App\Entity\GoodAssignement
  2033.      */
  2034.     public function getGoodAssignement()
  2035.     {
  2036.         return $this->goodAssignement;
  2037.     }
  2038.     /**
  2039.      * Add steal
  2040.      *
  2041.      * @param \App\Entity\Steal $steal
  2042.      *
  2043.      * @return Item
  2044.      */
  2045.     public function addSteal(\App\Entity\Steal $steal)
  2046.     {
  2047.         $this->steals[] = $steal;
  2048.         return $this;
  2049.     }
  2050.     /**
  2051.      * Remove steal
  2052.      *
  2053.      * @param \App\Entity\Steal $steal
  2054.      */
  2055.     public function removeSteal(\App\Entity\Steal $steal)
  2056.     {
  2057.         $this->steals->removeElement($steal);
  2058.     }
  2059.     /**
  2060.      * Get steals
  2061.      *
  2062.      * @return \Doctrine\Common\Collections\Collection
  2063.      */
  2064.     public function getSteals()
  2065.     {
  2066.         return $this->steals;
  2067.     }
  2068.     /**
  2069.      * Add complaintLetter
  2070.      *
  2071.      * @param \App\Entity\ComplaintLetter $complaintLetter
  2072.      *
  2073.      * @return Item
  2074.      */
  2075.     public function addComplaintLetter(\App\Entity\ComplaintLetter $complaintLetter)
  2076.     {
  2077.         $this->complaintLetters[] = $complaintLetter;
  2078.         return $this;
  2079.     }
  2080.     /**
  2081.      * Remove complaintLetter
  2082.      *
  2083.      * @param \App\Entity\ComplaintLetter $complaintLetter
  2084.      */
  2085.     public function removeComplaintLetter(\App\Entity\ComplaintLetter $complaintLetter)
  2086.     {
  2087.         $this->complaintLetters->removeElement($complaintLetter);
  2088.     }
  2089.     /**
  2090.      * Get complaintLetters
  2091.      *
  2092.      * @return \Doctrine\Common\Collections\Collection
  2093.      */
  2094.     public function getComplaintLetters()
  2095.     {
  2096.         return $this->complaintLetters;
  2097.     }
  2098.     /**
  2099.      * Set isTransferred
  2100.      *
  2101.      * @param boolean $isTransferred
  2102.      *
  2103.      * @return Item
  2104.      */
  2105.     public function setIsTransferred($isTransferred)
  2106.     {
  2107.         $this->isTransferred $isTransferred;
  2108.         return $this;
  2109.     }
  2110.     /**
  2111.      * Get isTransferred
  2112.      *
  2113.      * @return boolean
  2114.      */
  2115.     public function getIsTransferred()
  2116.     {
  2117.         return $this->isTransferred;
  2118.     }
  2119.     /**
  2120.      * Add disasterDeclaration
  2121.      *
  2122.      * @param \App\Entity\DisasterDeclaration $disasterDeclaration
  2123.      *
  2124.      * @return Item
  2125.      */
  2126.     public function addDisasterDeclaration(\App\Entity\DisasterDeclaration $disasterDeclaration)
  2127.     {
  2128.         $this->disasterDeclarations[] = $disasterDeclaration;
  2129.         return $this;
  2130.     }
  2131.     /**
  2132.      * Remove disasterDeclaration
  2133.      *
  2134.      * @param \App\Entity\DisasterDeclaration $disasterDeclaration
  2135.      */
  2136.     public function removeDisasterDeclaration(\App\Entity\DisasterDeclaration $disasterDeclaration)
  2137.     {
  2138.         $this->disasterDeclarations->removeElement($disasterDeclaration);
  2139.     }
  2140.     /**
  2141.      * Get disasterDeclarations
  2142.      *
  2143.      * @return \Doctrine\Common\Collections\Collection
  2144.      */
  2145.     public function getDisasterDeclarations()
  2146.     {
  2147.         return $this->disasterDeclarations;
  2148.     }
  2149.     /**
  2150.      * Set imeiNumber
  2151.      *
  2152.      * @param string $imeiNumber
  2153.      *
  2154.      * @return Item
  2155.      */
  2156.     public function setImeiNumber($imeiNumber)
  2157.     {
  2158.         $this->imeiNumber $imeiNumber;
  2159.         return $this;
  2160.     }
  2161.     /**
  2162.      * Get imeiNumber
  2163.      *
  2164.      * @return string
  2165.      */
  2166.     public function getImeiNumber()
  2167.     {
  2168.         return $this->imeiNumber;
  2169.     }
  2170.     /**
  2171.      * Add complaintX
  2172.      *
  2173.      * @param \App\Entity\ComplaintX $complaintX
  2174.      *
  2175.      * @return Item
  2176.      */
  2177.     public function addComplaintX(\App\Entity\ComplaintX $complaintX)
  2178.     {
  2179.         $this->complaintXs[] = $complaintX;
  2180.         return $this;
  2181.     }
  2182.     /**
  2183.      * Remove complaintX
  2184.      *
  2185.      * @param \App\Entity\ComplaintX $complaintX
  2186.      */
  2187.     public function removeComplaintX(\App\Entity\ComplaintX $complaintX)
  2188.     {
  2189.         $this->complaintXs->removeElement($complaintX);
  2190.     }
  2191.     /**
  2192.      * Get complaintXs
  2193.      *
  2194.      * @return \Doctrine\Common\Collections\Collection
  2195.      */
  2196.     public function getComplaintXs()
  2197.     {
  2198.         return $this->complaintXs;
  2199.     }
  2200.     /**
  2201.      * Set isDeleted
  2202.      *
  2203.      * @param boolean $isDeleted
  2204.      *
  2205.      * @return Item
  2206.      */
  2207.     public function setIsDeleted($isDeleted)
  2208.     {
  2209.         $this->isDeleted $isDeleted;
  2210.         return $this;
  2211.     }
  2212.     /**
  2213.      * Get isDeleted
  2214.      *
  2215.      * @return boolean
  2216.      */
  2217.     public function getIsDeleted()
  2218.     {
  2219.         return $this->isDeleted;
  2220.     }
  2221.     /**
  2222.      * Add itemsListComplaint
  2223.      *
  2224.      * @param \App\Entity\ItemsListComplaint $itemsListComplaint
  2225.      *
  2226.      * @return Item
  2227.      */
  2228.     public function addItemsListComplaint(\App\Entity\ItemsListComplaint $itemsListComplaint)
  2229.     {
  2230.         $this->itemsListComplaints[] = $itemsListComplaint;
  2231.         return $this;
  2232.     }
  2233.     /**
  2234.      * Remove itemsListComplaint
  2235.      *
  2236.      * @param \App\Entity\ItemsListComplaint $itemsListComplaint
  2237.      */
  2238.     public function removeItemsListComplaint(\App\Entity\ItemsListComplaint $itemsListComplaint)
  2239.     {
  2240.         $this->itemsListComplaints->removeElement($itemsListComplaint);
  2241.     }
  2242.     /**
  2243.      * Get itemsListComplaints
  2244.      *
  2245.      * @return \Doctrine\Common\Collections\Collection
  2246.      */
  2247.     public function getItemsListComplaints()
  2248.     {
  2249.         return $this->itemsListComplaints;
  2250.     }
  2251.     /**
  2252.      * Add lossReport
  2253.      *
  2254.      * @param \App\Entity\LossReport $lossReport
  2255.      *
  2256.      * @return Item
  2257.      */
  2258.     public function addLossReport(\App\Entity\LossReport $lossReport)
  2259.     {
  2260.         $this->lossReports[] = $lossReport;
  2261.         return $this;
  2262.     }
  2263.     /**
  2264.      * Remove lossReport
  2265.      *
  2266.      * @param \App\Entity\LossReport $lossReport
  2267.      */
  2268.     public function removeLossReport(\App\Entity\LossReport $lossReport)
  2269.     {
  2270.         $this->lossReports->removeElement($lossReport);
  2271.     }
  2272.     /**
  2273.      * Get lossReports
  2274.      *
  2275.      * @return \Doctrine\Common\Collections\Collection
  2276.      */
  2277.     public function getLossReports()
  2278.     {
  2279.         return $this->lossReports;
  2280.     }
  2281.     /**
  2282.      * Add insurance
  2283.      *
  2284.      * @param \App\Entity\Insurance $insurance
  2285.      *
  2286.      * @return Item
  2287.      */
  2288.     public function addInsurance(\App\Entity\Insurance $insurance)
  2289.     {
  2290.         $this->insurances[] = $insurance;
  2291.         return $this;
  2292.     }
  2293.     /**
  2294.      * Remove insurance
  2295.      *
  2296.      * @param \App\Entity\Insurance $insurance
  2297.      */
  2298.     public function removeInsurance(\App\Entity\Insurance $insurance)
  2299.     {
  2300.         $this->insurances->removeElement($insurance);
  2301.     }
  2302.     /**
  2303.      * Get insurances
  2304.      *
  2305.      * @return \Doctrine\Common\Collections\Collection
  2306.      */
  2307.     public function getInsurances()
  2308.     {
  2309.         return $this->insurances;
  2310.     }
  2311.     /**
  2312.      * Set complaintAt.
  2313.      *
  2314.      * @param DateTime|null $complaintAt
  2315.      *
  2316.      * @return Item
  2317.      */
  2318.     public function setComplaintAt($complaintAt null)
  2319.     {
  2320.         $this->complaintAt $complaintAt;
  2321.         return $this;
  2322.     }
  2323.     /**
  2324.      * Get complaintAt.
  2325.      *
  2326.      * @return DateTime|null
  2327.      */
  2328.     public function getComplaintAt()
  2329.     {
  2330.         return $this->complaintAt;
  2331.     }
  2332.     /**
  2333.      * Set stolenBike.
  2334.      *
  2335.      * @param \App\Entity\ComplaintX|null $stolenBike
  2336.      *
  2337.      * @return Item
  2338.      */
  2339.     public function setStolenBike(\App\Entity\ComplaintX $stolenBike null)
  2340.     {
  2341.         $this->stolenBike $stolenBike;
  2342.         return $this;
  2343.     }
  2344.     /**
  2345.      * Get stolenBike.
  2346.      *
  2347.      * @return \App\Entity\ComplaintX|null
  2348.      */
  2349.     public function getStolenBike()
  2350.     {
  2351.         return $this->stolenBike;
  2352.     }
  2353.     /**
  2354.      * Add stolenBike.
  2355.      *
  2356.      * @param \App\Entity\ComplaintX $stolenBike
  2357.      *
  2358.      * @return Item
  2359.      */
  2360.     public function addStolenBike(\App\Entity\ComplaintX $stolenBike)
  2361.     {
  2362.         $this->stolenBike[] = $stolenBike;
  2363.         return $this;
  2364.     }
  2365.     /**
  2366.      * Remove stolenBike.
  2367.      *
  2368.      * @param \App\Entity\ComplaintX $stolenBike
  2369.      *
  2370.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  2371.      */
  2372.     public function removeStolenBike(\App\Entity\ComplaintX $stolenBike)
  2373.     {
  2374.         return $this->stolenBike->removeElement($stolenBike);
  2375.     }
  2376.     public function getActiveInsurance(): ?Insurance
  2377.     {
  2378.         $insurance $this->insurances->filter(fn(Insurance $insurance) => !$insurance->getIsDeleted())->first();
  2379.         return !$insurance null $insurance;
  2380.     }
  2381.     public function hasActiveInsurance(): bool
  2382.     {
  2383.         return $this->getActiveInsurance() !== null;
  2384.     }
  2385.     public function getMainColor(): ?SelectValues
  2386.     {
  2387.         return $this->mainColor;
  2388.     }
  2389.     public function setMainColor(?SelectValues $mainColor): static
  2390.     {
  2391.         $this->mainColor $mainColor;
  2392.         return $this;
  2393.     }
  2394.     public function getAntiTheftMarking(): ?string
  2395.     {
  2396.         return $this->antiTheftMarking;
  2397.     }
  2398.     public function setAntiTheftMarking(?string $antiTheftMarking): static
  2399.     {
  2400.         $this->antiTheftMarking $antiTheftMarking;
  2401.         return $this;
  2402.     }
  2403.     public function getAntiTheftMarkingType(): ?SelectValues
  2404.     {
  2405.         return $this->antiTheftMarkingType;
  2406.     }
  2407.     public function setAntiTheftMarkingType(?SelectValues $antiTheftMarkingType): static
  2408.     {
  2409.         $this->antiTheftMarkingType $antiTheftMarkingType;
  2410.         return $this;
  2411.     }
  2412. }