src/App/Entity/Chantier.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ChantierRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Criteria;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use GollumSF\EntityRelationSetter\ManyToOneSetter;
  8. use GollumSF\EntityRelationSetter\OneToManySetter;
  9. use Symfony\Component\Serializer\Annotation\Groups;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. /**
  12.  * @ORM\Table()
  13.  * @ORM\Entity(repositoryClass=ChantierRepository::class)
  14.  */
  15. class Chantier {
  16.     
  17.     use ManyToOneSetter;
  18.     use OneToManySetter;
  19.     
  20.     /**
  21.      * @ORM\Column(type="integer", length=25, options={"unsigned"=true})
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      * @Groups({
  25.      *     "chantier_get", "chantier_getc",
  26.      *     "prestation_get", "prestation_getc",
  27.      *     "cubageChantierRestant_getc",
  28.      *  "cubageChantier_get", "cubageChantier_getc",
  29.      *     "cubageLivraison_get", "cubageLivraison_getc",
  30.      *     "cubagePlateforme_get", "cubagePlateforme_getc",
  31.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  32.      *     "livraison_get"
  33.      * })
  34.      *
  35.      * @var int
  36.      */
  37.     private $id;
  38.     
  39.     /**
  40.      * @ORM\Column(type="string", length=100)
  41.      * @Groups({
  42.      *     "chantier_get", "chantier_getc",
  43.      *     "prestation_get", "prestation_getc",
  44.      *     "cubageChantierRestant_getc",
  45.      *  "cubageChantier_get", "cubageChantier_getc",
  46.      *     "cubageLivraison_get", "cubageLivraison_getc",
  47.      *     "cubagePlateforme_get", "cubagePlateforme_getc",
  48.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  49.      *     "livraison_get"
  50.      * })
  51.      * @Assert\NotBlank(groups={"chantier_post", "chantier_put"})
  52.      *
  53.      * @var string
  54.      */
  55.     private $name 'CH-?????';
  56.     /**
  57.      * @ORM\OneToMany(targetEntity=ChantierAutreClient::class, mappedBy="chantier", cascade={"persist", "remove"})
  58.      * @Groups({
  59.      *     "chantier_get", "chantier_post", "chantier_put"
  60.      * })
  61.      *
  62.      * @Assert\Valid(groups={"chantier_post", "chantier_put"})
  63.      *
  64.      *
  65.      * @var ChantierAutreClient[]|ArrayCollection
  66.      */
  67.     private $chantierAutreClients;
  68.     
  69.     /**
  70.      * @ORM\Column(type="text", nullable=true)
  71.      * @Groups({
  72.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  73.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  74.      *     "cubageChantierRestant_getc",
  75.      *     "cubageLivraison_getc",
  76.      * })
  77.      *
  78.      * @var string
  79.      */
  80.     private $commune;
  81.     /**
  82.      * @ORM\Column(type="text", nullable=true)
  83.      * @Groups({
  84.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  85.      * })
  86.      *
  87.      * @var string
  88.      */
  89.     private $GPS;
  90.     /**
  91.      * @ORM\Column(type="text", nullable=true)
  92.      * @Groups({
  93.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  94.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  95.      *     "cubageChantierRestant_getc",
  96.      * })
  97.      *
  98.      * @var string
  99.      */
  100.     private $lieudit;
  101.     /**
  102.      * @ORM\ManyToOne(targetEntity=Chauffeur::class, inversedBy="chantiers", fetch="EAGER")
  103.      * @Groups({
  104.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  105.      * })
  106.      *
  107.      * @var string
  108.      */
  109.     private $chauffeurParDefaut;
  110.     /**
  111.      * @ORM\Column(type="text", nullable=true)
  112.      * @Groups({
  113.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  114.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  115.      *     "cubageChantierRestant_getc",
  116.      * })
  117.      *
  118.      * @var string
  119.      */
  120.     private $messagePourChauffeur;
  121.     /**
  122.      * @ORM\Column(type="text", nullable=true)
  123.      * @Groups({
  124.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  125.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  126.      *     "cubageChantierRestant_getc",
  127.      * })
  128.      *
  129.      * @var string
  130.      */
  131.     private $messageOperateur;
  132.     /**
  133.      * @ORM\Column(type="text", nullable=true)
  134.      * @Groups({
  135.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  136.      *     "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
  137.      *     "cubageChantierRestant_getc",
  138.      *     "cubageLivraison_getc",
  139.      * })
  140.      *
  141.      * @var string
  142.      */
  143.     private $client;
  144.     /**
  145.      * @ORM\OneToMany(targetEntity=CubageChantierRestant::class, mappedBy="chantier", orphanRemoval=true, fetch="EXTRA_LAZY")
  146.      *
  147.      * @var CubageChantierRestant[]|ArrayCollection
  148.      */
  149.     private $cubageChantierRestants;
  150.     
  151.     /**
  152.      * @ORM\OneToMany(targetEntity=FraisChantier::class, mappedBy="chantier", cascade={"persist", "remove"})
  153.      * @Groups({
  154.      *     "chantier_get", "chantier_post", "chantier_put"
  155.      * })
  156.      *
  157.      * @Assert\Valid(groups={"chantier_post", "chantier_put"})
  158.      *
  159.      *
  160.      * @var FraisChantier[]|ArrayCollection
  161.      */
  162.     private $fraisChantiers;
  163.     
  164.     /**
  165.      * @ORM\Column(type="boolean")
  166.      * @Groups({
  167.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  168.      * })
  169.      *
  170.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  171.      *
  172.      * @var bool
  173.      */
  174.     private $payer false;
  175.     /**
  176.      * @ORM\Column(type="boolean")
  177.      * @Groups({
  178.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  179.      * })
  180.      *
  181.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  182.      *
  183.      * @var bool
  184.      */
  185.     private $paiementPreparer false;
  186.     /**
  187.      * @ORM\Column(type="boolean")
  188.      * @Groups({
  189.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  190.      * })
  191.      *
  192.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  193.      *
  194.      * @var bool
  195.      */
  196.     private $bilan false;
  197.     /**
  198.      * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="chantiers", fetch="EAGER")
  199.      * @ORM\JoinColumn(onDelete="SET NULL")
  200.      *
  201.      * @Groups({
  202.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
  203.      *     "prestation_get",
  204.      *     "cubageLivraison_get", "cubageLivraison_getc"
  205.      * })
  206.      *
  207.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  208.      *
  209.      * @var Contact
  210.      */
  211.     //private $contact;
  212.         /**
  213.      * @ORM\Column(type="boolean")
  214.      * @Groups({
  215.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  216.      * })
  217.      *
  218.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  219.      *
  220.      * @var bool
  221.      */
  222.     private $avecGrumes true;
  223.         /**
  224.      * @ORM\Column(type="boolean")
  225.      * @Groups({
  226.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  227.      * })
  228.      *
  229.      * @Assert\NotNull(groups={"chantier_post", "chantier_put"})
  230.      *
  231.      * @var bool
  232.      */
  233.     private $avecBillons false;
  234.     /**
  235.      * @ORM\ManyToOne(targetEntity=Abatteur::class, inversedBy="chantiers", fetch="EAGER")
  236.      * @ORM\JoinColumn(onDelete="SET NULL")
  237.      *
  238.      * @Groups({
  239.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  240.      * })
  241.      *
  242.      * @var Abatteur
  243.      */
  244.     private $abatteur;
  245.     
  246.     /**
  247.      * @ORM\ManyToOne(targetEntity=Debardeur::class, inversedBy="chantiers", fetch="EAGER")
  248.      * @ORM\JoinColumn(onDelete="SET NULL")
  249.      *
  250.      * @Groups({
  251.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  252.      * })
  253.      *
  254.      * @var Debardeur
  255.      */
  256.     private $debardeur;
  257.     /**
  258.      * @ORM\ManyToOne(targetEntity=Debardeur::class, inversedBy="chantiers2", fetch="EAGER")
  259.      * @ORM\JoinColumn(onDelete="SET NULL")
  260.      *
  261.      * @Groups({
  262.      *     "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
  263.      * })
  264.      *
  265.      * @var Debardeur
  266.      */
  267.     private $debardeurdeux;
  268.     /**
  269.      * @ORM\Column(type="text", nullable=true)
  270.      * @Groups({
  271.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  272.      * })
  273.      *
  274.      * @var string
  275.      */
  276.     private $intervenants;
  277.     /**
  278.      * @ORM\Column(type="text", nullable=true)
  279.      * @Groups({
  280.      *     "chantier_get", "chantier_put", "chantier_post"
  281.      * })
  282.      *
  283.      * @var string
  284.      */
  285.     private $consigne;
  286.     /**
  287.      * @ORM\Column(type="datetime", nullable=true)
  288.      * @Groups({
  289.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  290.      *     "prestation_get"
  291.      * })
  292.      *
  293.      * @var \DateTime
  294.      */
  295.     private $dtStart;
  296.     /**
  297.      * @ORM\Column(type="datetime", nullable=true)
  298.      * @Groups({
  299.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  300.      *     "prestation_get"
  301.      * })
  302.      *
  303.      * @var \DateTime
  304.      */
  305.     private $dtEnd// fin de chantier
  306.     /**
  307.      * @ORM\Column(type="datetime", nullable=true)
  308.      * @Groups({
  309.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  310.      *     "prestation_get"
  311.      * })
  312.      *
  313.      * @var \DateTime
  314.      */
  315.     private $dtEndCoupe// fin de coupe
  316.     /**
  317.      * @ORM\Column(type="datetime", nullable=true)
  318.      * @Groups({
  319.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  320.      *     "prestation_get"
  321.      * })
  322.      *
  323.      * @var \DateTime
  324.      */
  325.     private $expectedDtStart;
  326.     /**
  327.      * @ORM\Column(type="datetime", nullable=true)
  328.      * @Groups({
  329.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  330.      *     "prestation_get"
  331.      * })
  332.      *
  333.      * @var \DateTime
  334.      */
  335.     private $expectedDtEnd;
  336.     /**
  337.      * @ORM\Column(type="string", length=500, nullable=true)
  338.      * @Groups({
  339.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  340.      * })
  341.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  342.      *
  343.      * @var string
  344.      */
  345.     private $lien1// localisation 1
  346.     /**
  347.      * @ORM\Column(type="string", length=500, nullable=true)
  348.      * @Groups({
  349.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  350.      * })
  351.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  352.      *
  353.      * @var string
  354.      */
  355.     private $lien12// localisation 2
  356.     /**
  357.      * @ORM\Column(type="string", length=500, nullable=true)
  358.      * @Groups({
  359.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  360.      * })
  361.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  362.      *
  363.      * @var string
  364.      */
  365.     private $lien13// localisation 3
  366.     /**
  367.      * @ORM\Column(type="string", length=500, nullable=true)
  368.      * @Groups({
  369.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  370.      * })
  371.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  372.      *
  373.      * @var string
  374.      */
  375.     private $lien2// accès chantier
  376.     /**
  377.      * @ORM\Column(type="string", length=500, nullable=true)
  378.      * @Groups({
  379.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  380.      * })
  381.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  382.      *
  383.      * @var string
  384.      */
  385.     private $lienVersDrive;
  386.     /**
  387.      * @ORM\Column(type="string", length=45, nullable=true)
  388.      * @Groups({
  389.      *     "chantier_get", "chantier_put", "chantier_post"
  390.      * })
  391.      * @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
  392.      *
  393.      * @var string
  394.      */
  395.     private $donneurOrdre;
  396.     /**
  397.      * @ORM\Column(type="string", length=255, nullable=true)
  398.      * @Groups({
  399.      *     "chantier_get", "chantier_put", "chantier_post"
  400.      * })
  401.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  402.      *
  403.      * @var string
  404.      */
  405.     private $adresseDonneurOrdre;
  406.     /**
  407.      * @ORM\Column(type="string", length=10, nullable=true)
  408.      * @Groups({
  409.      *     "chantier_get", "chantier_put", "chantier_post"
  410.      * })
  411.      * @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
  412.      *
  413.      * @var string
  414.      */
  415.     private $CPDonneurOrdre;
  416.     /**
  417.      * @ORM\Column(type="string", length=255, nullable=true)
  418.      * @Groups({
  419.      *     "chantier_get", "chantier_put", "chantier_post"
  420.      * })
  421.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  422.      *
  423.      * @var string
  424.      */
  425.     private $villeDonneurOrdre;
  426.     /**
  427.      * @ORM\Column(type="string", length=45, nullable=true)
  428.      * @Groups({
  429.      *     "chantier_get", "chantier_put", "chantier_post"
  430.      * })
  431.      * @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
  432.      *
  433.      * @var string
  434.      */
  435.     private $telephoneDonneurOrdre;
  436.     /**
  437.      * @ORM\Column(type="string", length=255, nullable=true)
  438.      * @Groups({
  439.      *     "chantier_get", "chantier_put", "chantier_post"
  440.      * })
  441.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  442.      *
  443.      * @var string
  444.      */
  445.     private $emailDonneurOrdre;
  446.     /**
  447.      * @ORM\Column(type="string", length=255, nullable=true)
  448.      * @Groups({
  449.      *     "chantier_get", "chantier_put", "chantier_post"
  450.      * })
  451.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  452.      *
  453.      * @var string
  454.      */
  455.     private $societeAbattage;
  456.     /**
  457.      * @ORM\Column(type="string", length=255, nullable=true)
  458.      * @Groups({
  459.      *     "chantier_get", "chantier_put", "chantier_post"
  460.      * })
  461.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  462.      *
  463.      * @var string
  464.      */
  465.     private $contactAbattage;
  466.     /**
  467.      * @ORM\Column(type="string", length=255, nullable=true)
  468.      * @Groups({
  469.      *     "chantier_get", "chantier_put", "chantier_post"
  470.      * })
  471.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  472.      *
  473.      * @var string
  474.      */
  475.     private $adresseAbattage;
  476.     /**
  477.      * @ORM\Column(type="string", length=10, nullable=true)
  478.      * @Groups({
  479.      *     "chantier_get", "chantier_put", "chantier_post"
  480.      * })
  481.      * @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
  482.      *
  483.      * @var string
  484.      */
  485.     private $CPAbattage;
  486.     /**
  487.      * @ORM\Column(type="string", length=255, nullable=true)
  488.      * @Groups({
  489.      *     "chantier_get", "chantier_put", "chantier_post"
  490.      * })
  491.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  492.      *
  493.      * @var string
  494.      */
  495.     private $villeAbattage;
  496.     /**
  497.      * @ORM\Column(type="string", length=45, nullable=true)
  498.      * @Groups({
  499.      *     "chantier_get", "chantier_put", "chantier_post"
  500.      * })
  501.      * @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
  502.      *
  503.      * @var string
  504.      */
  505.     private $telephoneAbattage;
  506.     /**
  507.      * @ORM\Column(type="string", length=255, nullable=true)
  508.      * @Groups({
  509.      *     "chantier_get", "chantier_put", "chantier_post"
  510.      * })
  511.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  512.      *
  513.      * @var string
  514.      */
  515.     private $periodeAbattage;
  516.     /**
  517.      * @ORM\Column(type="string", length=255, nullable=true)
  518.      * @Groups({
  519.      *     "chantier_get", "chantier_put", "chantier_post"
  520.      * })
  521.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  522.      *
  523.      * @var string
  524.      */
  525.     private $societeDebardage;
  526.     /**
  527.      * @ORM\Column(type="string", length=255, nullable=true)
  528.      * @Groups({
  529.      *     "chantier_get", "chantier_put", "chantier_post"
  530.      * })
  531.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  532.      *
  533.      * @var string
  534.      */
  535.     private $contactDebardage;
  536.     /**
  537.      * @ORM\Column(type="string", length=255, nullable=true)
  538.      * @Groups({
  539.      *     "chantier_get", "chantier_put", "chantier_post"
  540.      * })
  541.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  542.      *
  543.      * @var string
  544.      */
  545.     private $adresseDebardage;
  546.     /**
  547.      * @ORM\Column(type="string", length=10, nullable=true)
  548.      * @Groups({
  549.      *     "chantier_get", "chantier_put", "chantier_post"
  550.      * })
  551.      * @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
  552.      *
  553.      * @var string
  554.      */
  555.     private $CPDebardage;
  556.     /**
  557.      * @ORM\Column(type="string", length=255, nullable=true)
  558.      * @Groups({
  559.      *     "chantier_get", "chantier_put", "chantier_post"
  560.      * })
  561.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  562.      *
  563.      * @var string
  564.      */
  565.     private $villeDebardage;
  566.     /**
  567.      * @ORM\Column(type="string", length=45, nullable=true)
  568.      * @Groups({
  569.      *     "chantier_get", "chantier_put", "chantier_post"
  570.      * })
  571.      * @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
  572.      *
  573.      * @var string
  574.      */
  575.     private $telephoneDebardage;
  576.     /**
  577.      * @ORM\Column(type="string", length=255, nullable=true)
  578.      * @Groups({
  579.      *     "chantier_get", "chantier_put", "chantier_post"
  580.      * })
  581.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  582.      *
  583.      * @var string
  584.      */
  585.     private $periodeDebardage;
  586.     /**
  587.      * @ORM\Column(type="string", length=255, nullable=true)
  588.      * @Groups({
  589.      *     "chantier_get", "chantier_put", "chantier_post"
  590.      * })
  591.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  592.      *
  593.      * @var string
  594.      */
  595.     private $consignessecuriteintervenants;
  596.     /**
  597.      * @ORM\Column(type="float", nullable=true)
  598.      * @Groups({
  599.      *     "chantier_get", "chantier_put", "chantier_post"
  600.      * })
  601.      * @Assert\Length(max=40, groups={"chantier_put", "chantier_post"})
  602.      *
  603.      * @var float
  604.      */
  605.     private $latitude;
  606.     /**
  607.      * @ORM\Column(type="float", nullable=true)
  608.      * @Groups({
  609.      *     "chantier_get", "chantier_put", "chantier_post"
  610.      * })
  611.      * @Assert\Length(max=40, groups={"chantier_put", "chantier_post"})
  612.      *
  613.      * @var float
  614.      */
  615.     private $longitude;
  616.     /**
  617.      * @ORM\Column(type="float", nullable=true)
  618.      * @Groups({
  619.      *     "chantier_get", "chantier_put", "chantier_post"
  620.      * })
  621.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  622.      *
  623.      * @var float
  624.      */
  625.     private $surface;
  626.     /**
  627.      * @ORM\Column(type="float", nullable=true)
  628.      * @Groups({
  629.      *     "chantier_get", "chantier_put", "chantier_post"
  630.      * })
  631.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  632.      *
  633.      * @var float
  634.      */
  635.     private $volume200;
  636.     /**
  637.      * @ORM\Column(type="boolean")
  638.      * @Groups({
  639.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  640.      *     "cubageChantierRestant_getc",
  641.      * })
  642.      *
  643.      * @var boolean
  644.      */
  645.     private $finDeCoupe false;
  646.     /**
  647.      * @ORM\Column(type="boolean")
  648.      * @Groups({
  649.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  650.      * })
  651.      *
  652.      * @var boolean
  653.      */
  654.     private $boisFini false// grumes livré
  655.     /**
  656.      * @ORM\Column(type="boolean")
  657.      * @Groups({
  658.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  659.      * })
  660.      *
  661.      * @var boolean
  662.      */
  663.     private $billonsFini false// billons livré
  664.     /**
  665.      * @ORM\Column(type="boolean")
  666.      * @Groups({
  667.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  668.      * })
  669.      *
  670.      * @var boolean
  671.      */
  672.     private $grumesDebarde false// grume debardé
  673.     /**
  674.      * @ORM\Column(type="datetime", nullable=true)
  675.      * @Groups({
  676.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  677.      *     "prestation_get"
  678.      * })
  679.      *
  680.      * @var \DateTime
  681.      */
  682.     private $dtEndGrumes// Grumes debardé
  683.     /**
  684.      * @ORM\Column(type="boolean")
  685.      * @Groups({
  686.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
  687.      * })
  688.      *
  689.      * @var boolean
  690.      */
  691.     private $billonsDebarde false// billonss debardé
  692.     /**
  693.      * @ORM\Column(type="datetime", nullable=true)
  694.      * @Groups({
  695.      *     "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
  696.      *     "prestation_get"
  697.      * })
  698.      *
  699.      * @var \DateTime
  700.      */
  701.     private $dtEndBillons// billons debardé
  702.     /**
  703.      * @ORM\Column(type="boolean")
  704.      * @Groups({
  705.      *     "chantier_get", "chantier_put", "chantier_post"
  706.      * })
  707.      *
  708.      * @var boolean
  709.      */
  710.     private $infospe1 false;
  711.     /**
  712.      * @ORM\Column(type="boolean")
  713.      * @Groups({
  714.      *     "chantier_get", "chantier_put", "chantier_post"
  715.      * })
  716.      *
  717.      * @var boolean
  718.      */
  719.     private $infospe2 false;
  720.     /**
  721.      * @ORM\Column(type="boolean")
  722.      * @Groups({
  723.      *     "chantier_get", "chantier_put", "chantier_post"
  724.      * })
  725.      *
  726.      * @var boolean
  727.      */
  728.     private $infospe3 false;
  729.     /**
  730.      * @ORM\Column(type="boolean")
  731.      * @Groups({
  732.      *     "chantier_get", "chantier_put", "chantier_post"
  733.      * })
  734.      *
  735.      * @var boolean
  736.      */
  737.     private $infospe4 false;
  738.     /**
  739.      * @ORM\Column(type="boolean")
  740.      * @Groups({
  741.      *     "chantier_get", "chantier_put", "chantier_post"
  742.      * })
  743.      *
  744.      * @var boolean
  745.      */
  746.     private $infospe5 false;
  747.     /**
  748.      * @ORM\Column(type="boolean")
  749.      * @Groups({
  750.      *     "chantier_get", "chantier_put", "chantier_post"
  751.      * })
  752.      *
  753.      * @var boolean
  754.      */
  755.     private $infospe6 false;
  756.     /**
  757.      * @ORM\Column(type="boolean")
  758.      * @Groups({
  759.      *     "chantier_get", "chantier_put", "chantier_post"
  760.      * })
  761.      *
  762.      * @var boolean
  763.      */
  764.     private $infospe7 false;
  765.     /**
  766.      * @ORM\Column(type="boolean")
  767.      * @Groups({
  768.      *     "chantier_get", "chantier_put", "chantier_post"
  769.      * })
  770.      *
  771.      * @var boolean
  772.      */
  773.     private $infospe8 false;
  774.     /**
  775.      * @ORM\Column(type="boolean")
  776.      * @Groups({
  777.      *     "chantier_get", "chantier_put", "chantier_post"
  778.      * })
  779.      *
  780.      * @var boolean
  781.      */
  782.     private $infospe9 false;
  783.     /**
  784.      * @ORM\Column(type="boolean")
  785.      * @Groups({
  786.      *     "chantier_get", "chantier_put", "chantier_post"
  787.      * })
  788.      *
  789.      * @var boolean
  790.      */
  791.     private $infospe10 false;
  792.     /**
  793.      * @ORM\Column(type="boolean")
  794.      * @Groups({
  795.      *     "chantier_get", "chantier_put", "chantier_post"
  796.      * })
  797.      *
  798.      * @var boolean
  799.      */
  800.     private $infospe11 false;
  801.     /**
  802.      * @ORM\Column(type="boolean")
  803.      * @Groups({
  804.      *     "chantier_get", "chantier_put", "chantier_post"
  805.      * })
  806.      *
  807.      * @var boolean
  808.      */
  809.     private $infospe12 false;
  810.     /**
  811.      * @ORM\Column(type="boolean")
  812.      * @Groups({
  813.      *     "chantier_get", "chantier_put", "chantier_post"
  814.      * })
  815.      *
  816.      * @var boolean
  817.      */
  818.     private $infospe13 false;
  819.     /**
  820.      * @ORM\Column(type="boolean")
  821.      * @Groups({
  822.      *     "chantier_get", "chantier_put", "chantier_post"
  823.      * })
  824.      *
  825.      * @var boolean
  826.      */
  827.     private $infospe14 false;
  828.     /**
  829.      * @ORM\Column(type="boolean")
  830.      * @Groups({
  831.      *     "chantier_get", "chantier_put", "chantier_post"
  832.      * })
  833.      *
  834.      * @var boolean
  835.      */
  836.     private $infospe15 false;
  837.     /**
  838.      * @ORM\Column(type="boolean")
  839.      * @Groups({
  840.      *     "chantier_get", "chantier_put", "chantier_post"
  841.      * })
  842.      *
  843.      * @var boolean
  844.      */
  845.     private $infospe16 false;
  846.     /**
  847.      * @ORM\Column(type="boolean")
  848.      * @Groups({
  849.      *     "chantier_get", "chantier_put", "chantier_post"
  850.      * })
  851.      *
  852.      * @var boolean
  853.      */
  854.     private $infospe17 false;
  855.     /**
  856.      * @ORM\Column(type="boolean")
  857.      * @Groups({
  858.      *     "chantier_get", "chantier_put", "chantier_post"
  859.      * })
  860.      *
  861.      * @var boolean
  862.      */
  863.     private $infospe18 false;
  864.     /**
  865.      * @ORM\Column(type="boolean")
  866.      * @Groups({
  867.      *     "chantier_get", "chantier_put", "chantier_post"
  868.      * })
  869.      *
  870.      * @var boolean
  871.      */
  872.     private $infospe19 false;
  873.     /**
  874.      * @ORM\Column(type="boolean")
  875.      * @Groups({
  876.      *     "chantier_get", "chantier_put", "chantier_post"
  877.      * })
  878.      *
  879.      * @var boolean
  880.      */
  881.     private $infospe20 false;
  882.     /**
  883.      * @ORM\Column(type="boolean")
  884.      * @Groups({
  885.      *     "chantier_get", "chantier_put", "chantier_post"
  886.      * })
  887.      *
  888.      * @var boolean
  889.      */
  890.     private $infospe21 false;
  891.     /**
  892.      * @ORM\Column(type="boolean")
  893.      * @Groups({
  894.      *     "chantier_get", "chantier_put", "chantier_post"
  895.      * })
  896.      *
  897.      * @var boolean
  898.      */
  899.     private $infospe22 false;
  900.     /**
  901.      * @ORM\Column(type="boolean")
  902.      * @Groups({
  903.      *     "chantier_get", "chantier_put", "chantier_post"
  904.      * })
  905.      *
  906.      * @var boolean
  907.      */
  908.     private $infospe23 false;
  909.     /**
  910.      * @ORM\Column(type="boolean")
  911.      * @Groups({
  912.      *     "chantier_get", "chantier_put", "chantier_post"
  913.      * })
  914.      *
  915.      * @var boolean
  916.      */
  917.     private $infospe24 false;
  918.     /**
  919.      * @ORM\Column(type="boolean")
  920.      * @Groups({
  921.      *     "chantier_get", "chantier_put", "chantier_post"
  922.      * })
  923.      *
  924.      * @var boolean
  925.      */
  926.     private $infospe25 false;
  927.     /**
  928.      * @ORM\Column(type="boolean")
  929.      * @Groups({
  930.      *     "chantier_get", "chantier_put", "chantier_post"
  931.      * })
  932.      *
  933.      * @var boolean
  934.      */
  935.     private $infospe26 false;
  936.     /**
  937.      * @ORM\Column(type="boolean")
  938.      * @Groups({
  939.      *     "chantier_get", "chantier_put", "chantier_post"
  940.      * })
  941.      *
  942.      * @var boolean
  943.      */
  944.     private $infospe27 false;
  945.     /**
  946.      * @ORM\Column(type="boolean")
  947.      * @Groups({
  948.      *     "chantier_get", "chantier_put", "chantier_post"
  949.      * })
  950.      *
  951.      * @var boolean
  952.      */
  953.     private $infospe28 false;
  954.     /**
  955.      * @ORM\Column(type="float", nullable=true)
  956.      * @Groups({
  957.      *     "chantier_get", "chantier_put", "chantier_post"
  958.      * })
  959.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  960.      *
  961.      * @var float
  962.      */
  963.     private $valueinfospe28 0;
  964.     /**
  965.      * @ORM\Column(type="boolean")
  966.      * @Groups({
  967.      *     "chantier_get", "chantier_put", "chantier_post"
  968.      * })
  969.      *
  970.      * @var boolean
  971.      */
  972.     private $infospe29 false;
  973.     /**
  974.      * @ORM\Column(type="boolean")
  975.      * @Groups({
  976.      *     "chantier_get", "chantier_put", "chantier_post"
  977.      * })
  978.      *
  979.      * @var boolean
  980.      */
  981.     private $infospe30 false;
  982.     /**
  983.      * @ORM\Column(type="boolean")
  984.      * @Groups({
  985.      *     "chantier_get", "chantier_put", "chantier_post"
  986.      * })
  987.      *
  988.      * @var boolean
  989.      */
  990.     private $infospe31 false;
  991.     /**
  992.      * @ORM\Column(type="boolean")
  993.      * @Groups({
  994.      *     "chantier_get", "chantier_put", "chantier_post"
  995.      * })
  996.      *
  997.      * @var boolean
  998.      */
  999.     private $infospe32 false;
  1000.     /**
  1001.      * @ORM\Column(type="boolean")
  1002.      * @Groups({
  1003.      *     "chantier_get", "chantier_put", "chantier_post"
  1004.      * })
  1005.      *
  1006.      * @var boolean
  1007.      */
  1008.     private $infospe33 false;
  1009.     /**
  1010.      * @ORM\Column(type="boolean")
  1011.      * @Groups({
  1012.      *     "chantier_get", "chantier_put", "chantier_post"
  1013.      * })
  1014.      *
  1015.      * @var boolean
  1016.      */
  1017.     private $couverturetelbonne true;
  1018.     /**
  1019.      * @ORM\Column(type="string", length=255, nullable=true)
  1020.      * @Groups({
  1021.      *     "chantier_get", "chantier_put", "chantier_post"
  1022.      * })
  1023.      * @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
  1024.      *
  1025.      * @var string
  1026.      */
  1027.     private $zonecouverte;
  1028.     /**
  1029.      * @ORM\Column(type="string", length=500, nullable=true)
  1030.      * @Groups({
  1031.      *     "chantier_get", "chantier_put", "chantier_post"
  1032.      * })
  1033.      * @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
  1034.      *
  1035.      * @var string
  1036.      */
  1037.     private $ficheobservations;
  1038.     /**
  1039.      * @ORM\Column(type="float", nullable=true)
  1040.      * @Groups({
  1041.      *     "chantier_get", "chantier_put", "chantier_post"
  1042.      * })
  1043.      *
  1044.      * @var float
  1045.      */
  1046.     private $coutM3Defaut;
  1047.     /**
  1048.      * @ORM\Column(type="float", nullable=true)
  1049.      * @Groups({
  1050.      *     "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
  1051.      * })
  1052.      *
  1053.      * @var float
  1054.      */
  1055.     private $totalAchatsBois;
  1056.     /**
  1057.      * @ORM\Column(type="float", nullable=true)
  1058.      * @Groups({
  1059.      *     "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
  1060.      * })
  1061.      *
  1062.      * @var float
  1063.      */
  1064.     private $totalCoutsExploitation;
  1065.     /**
  1066.      * @ORM\Column(type="float", nullable=true)
  1067.      * @Groups({
  1068.      *     "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
  1069.      * })
  1070.      *
  1071.      * @var float
  1072.      */
  1073.     private $totalVentes;
  1074.     /**
  1075.      * @ORM\Column(type="float", nullable=true)
  1076.      * @Groups({
  1077.      *     "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
  1078.      * })
  1079.      *
  1080.      * @var float
  1081.      */
  1082.     private $benefices;
  1083.     /**
  1084.      * @ORM\Column(type="boolean")
  1085.      * @Groups({
  1086.      *     "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
  1087.      * })
  1088.      *
  1089.      * @var boolean
  1090.      */
  1091.     private $financialClose false;
  1092.     /**
  1093.      * @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier", cascade={"remove"})
  1094.      * @Groups({
  1095.      *     "chantier_get"
  1096.      * })
  1097.      *
  1098.      * @var DocumentChantier[]|ArrayCollection
  1099.      */
  1100.     private $documentChantiers;
  1101.     
  1102.     /**
  1103.      * @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier2", cascade={"remove"})
  1104.      * @Groups({
  1105.      *     "chantier_get"
  1106.      * })
  1107.      *
  1108.      * @var DocumentChantier[]|ArrayCollection
  1109.      */
  1110.     private $photoChantiers;
  1111.     
  1112.     /**
  1113.      * @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier3", cascade={"remove"})
  1114.      * @Groups({
  1115.      *     "chantier_get"
  1116.      * })
  1117.      *
  1118.      * @var DocumentChantier[]|ArrayCollection
  1119.      */
  1120.     private $documentChauffeurs;
  1121.     
  1122.     /**
  1123.      * @ORM\OneToMany(targetEntity=Intervention::class, mappedBy="chantier")
  1124.      * @ORM\JoinColumn(onDelete="SET NULL")
  1125.      *
  1126.      * @var Intervention[]|ArrayCollection
  1127.      */
  1128.     private $interventions;
  1129.     
  1130.     /**
  1131.      * @ORM\OneToMany(targetEntity=Prestation::class, mappedBy="chantier", fetch="EAGER")
  1132.      * @ORM\JoinColumn(onDelete="SET NULL")
  1133.      * @Groups({
  1134.      *     "chantier_get"
  1135.      * })
  1136.      *
  1137.      * @var Prestation[]|ArrayCollection
  1138.      */
  1139.     private $prestations;
  1140.     
  1141.     /**
  1142.      * @ORM\OneToMany(targetEntity=CubageLivraison::class, mappedBy="chantier")
  1143.      * @ORM\JoinColumn(onDelete="SET NULL")
  1144.      *
  1145.      * @Groups({
  1146.      *     "chantier_get"
  1147.      * })
  1148.      *
  1149.      * @var CubageLivraison[]|ArrayCollection
  1150.      */
  1151.     private $cubageLivraisons;
  1152.     
  1153.     /**
  1154.      * @ORM\OneToMany(targetEntity=CubageChantier::class, mappedBy="chantier", cascade={"remove"})
  1155.      *
  1156.      * @Groups({
  1157.      *     "chantier_get",
  1158.      *     "cubagePlateforme_get", "cubagePlateforme_getc", "cubagePlateforme_post", "cubagePlateforme_put",
  1159.      * })
  1160.      *
  1161.      * @var CubageChantier[]|ArrayCollection
  1162.      */
  1163.     private $cubageChantiers;
  1164.     /**
  1165.      * @ORM\OneToMany(targetEntity=CubageChantierTest::class, mappedBy="chantier", cascade={"remove"})
  1166.      *
  1167.      *
  1168.      * @var CubageChantierTest[]|ArrayCollection
  1169.      */
  1170.     private $cubageChantierTests;
  1171.     /**
  1172.      * @ORM\OneToMany(targetEntity=CubagePlateforme::class, mappedBy="chantier", orphanRemoval=true, fetch="EXTRA_LAZY")
  1173.      *
  1174.      * @var CubagePlateforme[]|ArrayCollection
  1175.      */
  1176.     private $cubagePlateformes;
  1177.     
  1178.     public function __construct() {
  1179.         $this->setCoutM3Defaut(15);
  1180.         $this->chantierAutreClients = new ArrayCollection();
  1181.         $this->cubageChantierRestants = new ArrayCollection();
  1182.         $this->setDonneurOrdre("CHIZELLE FRERES");
  1183.         $this->setAdresseDonneurOrdre("les rivières");
  1184.         $this->setCPDonneurOrdre("69 870");
  1185.         $this->setVilleDonneurOrdre("St bonnet le troncy");
  1186.         $this->setTelephoneDonneurOrdre("06 08 92 57 46");
  1187.         $this->setEMailDonneurOrdre("chizellefr@gmail.com");
  1188.         $this->setSocieteAbattage("CHIZELLE FRERES");
  1189.         $this->setContactAbattage("CHIZELLE Yves");
  1190.         $this->setAdresseAbattage("les rivières");
  1191.         $this->setCPAbattage("69 870");
  1192.         $this->setVilleAbattage("St bonnet le troncy");
  1193.         $this->setTelephoneAbattage("06 08 92 57 46");
  1194.         $this->setSocieteDebardage("CHIZELLE FRERES");
  1195.         $this->setContactDebardage("CHIZELLE Yves");
  1196.         $this->setAdresseDebardage("les rivières");
  1197.         $this->setCPDebardage("69 870");
  1198.         $this->setVilleDebardage("St bonnet le troncy");
  1199.         $this->setTelephoneDebardage("06 08 92 57 46");
  1200.         $this->documentChantiers = new ArrayCollection();
  1201.         $this->photoChantiers = new ArrayCollection();
  1202.         $this->documentChauffeurs = new ArrayCollection();
  1203.         $this->interventions = new ArrayCollection();
  1204.         $this->prestations = new ArrayCollection();
  1205.         $this->cubageLivraisons = new ArrayCollection();
  1206.         $this->cubagePlateformes = new ArrayCollection();
  1207.         $this->cubageChantiers = new ArrayCollection();
  1208.         $this->cubageChantierTests = new ArrayCollection();
  1209.         $this->fraisChantiers = new ArrayCollection();
  1210.         $this->setTotalAchatsBois(0);
  1211.         $this->setTotalCoutsExploitation(0);
  1212.         $this->setTotalVentes(0);
  1213.         $this->setBenefices(0);
  1214.         $this->setFinancialClose(false);
  1215.     }
  1216.     
  1217.     /////////////
  1218.     // Getters //
  1219.     /////////////
  1220.     
  1221.     public function getId(): ?int {
  1222.         return $this->id;
  1223.     }
  1224.     
  1225.     public function getName(): string {
  1226.         return $this->name;
  1227.     }
  1228.     /**
  1229.      * @return ArrayCollection|ChantierAutreClients[]
  1230.      */
  1231.     public function getChantierAutreClients() {
  1232.         return $this->chantierAutreClients;
  1233.     }
  1234.     
  1235.     public function getCommune(): ?string {
  1236.         return $this->commune;
  1237.     }
  1238.     public function getGPS(): ?string {
  1239.         return $this->GPS;
  1240.     }
  1241.     public function getLieudit(): ?string {
  1242.         return $this->lieudit;
  1243.     }
  1244.     public function getChauffeurParDefaut(): ?Chauffeur {
  1245.         return $this->chauffeurParDefaut;
  1246.     }
  1247.     public function getMessagePourChauffeur(): ?string {
  1248.         return $this->messagePourChauffeur;
  1249.     }
  1250.     public function getMessageOperateur(): ?string {
  1251.         return $this->messageOperateur;
  1252.     }
  1253.     public function getClient(): ?string {
  1254.         return $this->client;
  1255.     }
  1256.     public function isPayer(): bool {
  1257.         return $this->payer;
  1258.     }
  1259.     public function isPaiementPreparer(): bool {
  1260.         return $this->paiementPreparer;
  1261.     }
  1262.     public function getBilan(): bool {
  1263.         return $this->bilan;
  1264.     }
  1265.     /**
  1266.      * @return CubageChantier[]|ArrayCollection
  1267.      */
  1268.     public function getCubageChantiers() {
  1269.         return $this->cubageChantiers;
  1270.     }
  1271.     /**
  1272.      * @return CubageChantierTest[]|ArrayCollection
  1273.      */
  1274.     public function getCubageChantierTests() {
  1275.         return $this->cubageChantierTests;
  1276.     }
  1277.     /**
  1278.      * @return ArrayCollection|FraisChantier[]
  1279.      */
  1280.     public function getFraisChantiers() {
  1281.         return $this->fraisChantiers;
  1282.     }
  1283.     
  1284.     public function getConsigne(): ?string {
  1285.         return $this->consigne;
  1286.     }
  1287.     public function getDtStart(): ?\DateTime {
  1288.         return $this->dtStart;
  1289.     }
  1290.     public function getDtEnd(): ?\DateTime {
  1291.         return $this->dtEnd;
  1292.     }
  1293.     public function getDtEndCoupe(): ?\DateTime {
  1294.         return $this->dtEndCoupe;
  1295.     }
  1296.     public function getExpectedDtStart(): ?\DateTime {
  1297.         return $this->expectedDtStart;
  1298.     }
  1299.     public function getExpectedDtEnd(): ?\DateTime {
  1300.         return $this->expectedDtEnd;
  1301.     }
  1302.     public function getLien1(): ?string {
  1303.         return $this->lien1;
  1304.     }
  1305.     public function getLien12(): ?string {
  1306.         return $this->lien12;
  1307.     }
  1308.     public function getLien13(): ?string {
  1309.         return $this->lien13;
  1310.     }
  1311.     public function getLien2(): ?string {
  1312.         return $this->lien2;
  1313.     }
  1314.     
  1315.     public function getLienVersDrive(): ?string {
  1316.         return $this->lienVersDrive;
  1317.     }
  1318.     public function getDonneurOrdre(): ?string {
  1319.         return $this->donneurOrdre;
  1320.     }
  1321.     public function getAdresseDonneurOrdre(): ?string {
  1322.         return $this->adresseDonneurOrdre;
  1323.     }
  1324.     public function getCPDonneurOrdre(): ?string {
  1325.         return $this->CPDonneurOrdre;
  1326.     }
  1327.     public function getVilleDonneurOrdre(): ?string {
  1328.         return $this->villeDonneurOrdre;
  1329.     }
  1330.     public function getTelephoneDonneurOrdre(): ?string {
  1331.         return $this->telephoneDonneurOrdre;
  1332.     }
  1333.     public function getEMailDonneurOrdre(): ?string {
  1334.         return $this->emailDonneurOrdre;
  1335.     }
  1336.     public function getSocieteAbattage(): ?string {
  1337.         return $this->societeAbattage;
  1338.     }
  1339.     public function getContactAbattage(): ?string {
  1340.         return $this->contactAbattage;
  1341.     }
  1342.     public function getAdresseAbattage(): ?string {
  1343.         return $this->adresseAbattage;
  1344.     }
  1345.     public function getCPAbattage(): ?string {
  1346.         return $this->CPAbattage;
  1347.     }
  1348.     public function getVilleAbattage(): ?string {
  1349.         return $this->villeAbattage;
  1350.     }
  1351.     public function getTelephoneAbattage(): ?string {
  1352.         return $this->telephoneAbattage;
  1353.     }
  1354.     public function getPeriodeAbattage(): ?string {
  1355.         return $this->periodeAbattage;
  1356.     }
  1357.     public function getSocieteDebardage(): ?string {
  1358.         return $this->societeDebardage;
  1359.     }
  1360.     public function getContactDebardage(): ?string {
  1361.         return $this->contactDebardage;
  1362.     }
  1363.     public function getAdresseDebardage(): ?string {
  1364.         return $this->adresseDebardage;
  1365.     }
  1366.     public function getCPDebardage(): ?string {
  1367.         return $this->CPDebardage;
  1368.     }
  1369.     public function getVilleDebardage(): ?string {
  1370.         return $this->villeDebardage;
  1371.     }
  1372.     public function getTelephoneDebardage(): ?string {
  1373.         return $this->telephoneDebardage;
  1374.     }
  1375.     public function getPeriodeDebardage(): ?string {
  1376.         return $this->periodeDebardage;
  1377.     }
  1378.     public function getConsignesSecuriteIntervenants(): ?string {
  1379.         return $this->consignessecuriteintervenants;
  1380.     }
  1381.     
  1382.     public function getAbatteur(): ?Abatteur {
  1383.         return $this->abatteur;
  1384.     }
  1385.     
  1386.     public function isAvecGrumes(): bool {
  1387.         return $this->avecGrumes;
  1388.     }
  1389.     
  1390.     public function isGrumesDebarde(): bool {
  1391.         return $this->grumesDebarde;
  1392.     }
  1393.     
  1394.     public function getDtEndGrumes(): ?\DateTime {
  1395.         return $this->dtEndGrumes;
  1396.     }
  1397.     public function getDebardeur(): ?Debardeur {
  1398.         return $this->debardeur;
  1399.     }
  1400.     
  1401.     public function isAvecBillons(): bool {
  1402.         return $this->avecBillons;
  1403.     }
  1404.     
  1405.     public function isBillonsDebarde(): bool {
  1406.         return $this->billonsDebarde;
  1407.     }
  1408.     
  1409.     public function getDtEndBillons(): ?\DateTime {
  1410.         return $this->dtEndBillons;
  1411.     }
  1412.     public function getDebardeurdeux(): ?Debardeur {
  1413.         return $this->debardeurdeux;
  1414.     }
  1415.     
  1416.     public function getIntervenants(): ?string {
  1417.         return $this->intervenants;
  1418.     }
  1419.     
  1420.     public function getSurface(): ?float {
  1421.         return $this->surface;
  1422.     }
  1423.     public function getLatitude(): ?float {
  1424.         return $this->latitude;
  1425.     }
  1426.     public function getLongitude(): ?float {
  1427.         return $this->longitude;
  1428.     }
  1429.     public function getVolume200(): ?float {
  1430.         return $this->volume200;
  1431.     }
  1432.     public function getFinDeCoupe(): ?bool {
  1433.         return $this->finDeCoupe;
  1434.     }
  1435.     public function getBoisFini(): ?bool {
  1436.         return $this->boisFini;
  1437.     }
  1438.     public function getBillonsFini(): ?bool {
  1439.         return $this->billonsFini;
  1440.     }
  1441.     public function getInfospe1(): ?bool {
  1442.         return $this->infospe1;
  1443.     }
  1444.     
  1445.     public function getInfospe2(): ?bool {
  1446.         return $this->infospe2;
  1447.     }
  1448.     
  1449.     public function getInfospe3(): ?bool {
  1450.         return $this->infospe3;
  1451.     }
  1452.     
  1453.     public function getInfospe4(): ?bool {
  1454.         return $this->infospe4;
  1455.     }
  1456.     
  1457.     public function getInfospe5(): ?bool {
  1458.         return $this->infospe5;
  1459.     }
  1460.     
  1461.     public function getInfospe6(): ?bool {
  1462.         return $this->infospe6;
  1463.     }
  1464.     
  1465.     public function getInfospe7(): ?bool {
  1466.         return $this->infospe7;
  1467.     }
  1468.     
  1469.     public function getInfospe8(): ?bool {
  1470.         return $this->infospe8;
  1471.     }
  1472.     
  1473.     public function getInfospe9(): ?bool {
  1474.         return $this->infospe9;
  1475.     }
  1476.     
  1477.     public function getInfospe10(): ?bool {
  1478.         return $this->infospe10;
  1479.     }
  1480.     
  1481.     public function getInfospe11(): ?bool {
  1482.         return $this->infospe11;
  1483.     }
  1484.     
  1485.     public function getInfospe12(): ?bool {
  1486.         return $this->infospe12;
  1487.     }
  1488.     
  1489.     public function getInfospe13(): ?bool {
  1490.         return $this->infospe13;
  1491.     }
  1492.     
  1493.     public function getInfospe14(): ?bool {
  1494.         return $this->infospe14;
  1495.     }
  1496.     
  1497.     public function getInfospe15(): ?bool {
  1498.         return $this->infospe15;
  1499.     }
  1500.     
  1501.     public function getInfospe16(): ?bool {
  1502.         return $this->infospe16;
  1503.     }
  1504.     
  1505.     public function getInfospe17(): ?bool {
  1506.         return $this->infospe17;
  1507.     }
  1508.     
  1509.     public function getInfospe18(): ?bool {
  1510.         return $this->infospe18;
  1511.     }
  1512.     
  1513.     public function getInfospe19(): ?bool {
  1514.         return $this->infospe19;
  1515.     }
  1516.     
  1517.     public function getInfospe20(): ?bool {
  1518.         return $this->infospe20;
  1519.     }
  1520.     
  1521.     public function getInfospe21(): ?bool {
  1522.         return $this->infospe21;
  1523.     }
  1524.     
  1525.     public function getInfospe22(): ?bool {
  1526.         return $this->infospe22;
  1527.     }
  1528.     
  1529.     public function getInfospe23(): ?bool {
  1530.         return $this->infospe23;
  1531.     }
  1532.     
  1533.     public function getInfospe24(): ?bool {
  1534.         return $this->infospe24;
  1535.     }
  1536.     
  1537.     public function getInfospe25(): ?bool {
  1538.         return $this->infospe25;
  1539.     }
  1540.     
  1541.     public function getInfospe26(): ?bool {
  1542.         return $this->infospe26;
  1543.     }
  1544.     
  1545.     public function getInfospe27(): ?bool {
  1546.         return $this->infospe27;
  1547.     }
  1548.     
  1549.     public function getInfospe28(): ?bool {
  1550.         return $this->infospe28;
  1551.     }
  1552.     
  1553.     public function getValueinfospe28(): ?float {
  1554.         return $this->valueinfospe28;
  1555.     }
  1556.     public function getInfospe29(): ?bool {
  1557.         return $this->infospe29;
  1558.     }
  1559.     
  1560.     public function getInfospe30(): ?bool {
  1561.         return $this->infospe30;
  1562.     }
  1563.     
  1564.     public function getInfospe31(): ?bool {
  1565.         return $this->infospe31;
  1566.     }
  1567.     
  1568.     public function getInfospe32(): ?bool {
  1569.         return $this->infospe32;
  1570.     }
  1571.     
  1572.     public function getInfospe33(): ?bool {
  1573.         return $this->infospe33;
  1574.     }
  1575.     
  1576.     public function getCouverturetelbonne(): ?bool {
  1577.         return $this->couverturetelbonne;
  1578.     }
  1579.     
  1580.     public function getZonecouverte(): ?string {
  1581.         return $this->zonecouverte;
  1582.     }
  1583.     public function getFicheobservations(): ?string {
  1584.         return $this->ficheobservations;
  1585.     }
  1586.     public function getCoutM3Defaut(): ?float {
  1587.         return $this->coutM3Defaut;
  1588.     }
  1589.     public function getTotalAchatsBois(): ?float {
  1590.         return $this->totalAchatsBois;
  1591.     }
  1592.     public function getTotalCoutsExploitation(): ?float {
  1593.         return $this->totalCoutsExploitation;
  1594.     }
  1595.     public function getTotalVentes(): ?float {
  1596.         return $this->totalVentes;
  1597.     }
  1598.     public function getBenefices(): ?float {
  1599.         return $this->benefices;
  1600.     }
  1601.     public function getFinancialClose(): ?bool {
  1602.         return $this->financialClose;
  1603.     }
  1604.     /**
  1605.      * @return DocumentChantier[]|ArrayCollection
  1606.      */
  1607.     public function getDocumentChantiers() {
  1608.         return $this->documentChantiers;
  1609.     }
  1610.     
  1611.     /**
  1612.      * @return DocumentChantier[]|ArrayCollection
  1613.      */
  1614.     public function getPhotoChantiers() {
  1615.         return $this->photoChantiers;
  1616.     }
  1617.     
  1618.     /**
  1619.      * @return DocumentChantier[]|ArrayCollection
  1620.      */
  1621.     public function getDocumentChauffeurs() {
  1622.         return $this->documentChauffeurs;
  1623.     }
  1624.     
  1625.     /**
  1626.      * @return Intervention[]|ArrayCollection
  1627.      */
  1628.     public function getInterventions() {
  1629.         return $this->interventions;
  1630.     }
  1631.     
  1632.     /**
  1633.      * @return Prestation[]|ArrayCollection
  1634.      */
  1635.     public function getPrestations() {
  1636.         return $this->prestations;
  1637.     }
  1638.     
  1639.     /**
  1640.      * @return Prestation[]|ArrayCollection
  1641.      */
  1642.     public function getPrestationsBuy() {
  1643.         return $this->prestations->filter(function (Prestation $prestation) {
  1644.             return $prestation->getPrestationType() && !$prestation->getPrestationType()->isSale();
  1645.         });
  1646.     }
  1647.     
  1648.     /**
  1649.      * @return Prestation[]|ArrayCollection
  1650.      */
  1651.     public function getPrestationsSale() {
  1652.         return $this->prestations->filter(function (Prestation $prestation) {
  1653.             return $prestation->getPrestationType() && $prestation->getPrestationType()->isSale();
  1654.         });
  1655.     }
  1656.     
  1657.     /**
  1658.      * @return CubageLivraison[]|ArrayCollection
  1659.      */
  1660.     public function getCubageLivraisons() {
  1661.         return $this->cubageLivraisons;
  1662.     }
  1663.     
  1664.     /**
  1665.      * @return CubageChantierRestant[]|ArrayCollection
  1666.      * []|ArrayCollection
  1667.      */
  1668.     public function getCubageChantierRestants() {
  1669.         return $this->cubageChantierRestants;
  1670.     }
  1671.     /**
  1672.      * @Groups({
  1673.      *     "chantier_get", "chantier_getc",
  1674.      *     "livraison_get"
  1675.      * })
  1676.      * @return BoisType[]
  1677.      */
  1678.     public function getBoisTypes() {
  1679.         $bois = [];
  1680.         foreach ($this->cubageChantiers as $cubage) {
  1681.             $bois[$cubage->getBoisType()->getId()] = $cubage->getBoisType();
  1682.         }
  1683.         return array_values($bois);
  1684.     }
  1685.     
  1686.     /**
  1687.      * @Groups({
  1688.      *     "chantier_get", "chantier_getc",
  1689.      *     "livraison_get"
  1690.      * })
  1691.      * @return BoisQuality[]
  1692.      */
  1693.     public function getBoisQualities() {
  1694.         $bois = [];
  1695.         foreach ($this->cubageChantiers as $cubage) {
  1696.             $bois[$cubage->getBoisQuality()->getId()] = $cubage->getBoisQuality();
  1697.         }
  1698.         return array_values($bois);
  1699.     }
  1700.     
  1701.     /**
  1702.      * @Groups({
  1703.      *     "chantier_get", "chantier_getc",
  1704.      *     "livraison_get"
  1705.      * })
  1706.      * @return BoisSize[]
  1707.      */
  1708.     public function getBoisSizes() {
  1709.         $bois = [];
  1710.         foreach ($this->cubageChantiers as $cubage) {
  1711.             $bois[$cubage->getBoisSize()->getId()] = $cubage->getBoisSize();
  1712.         }
  1713.         return array_values($bois);
  1714.     }
  1715.     
  1716.     /**
  1717.      * @Groups({
  1718.      *     "chantier_get", "chantier_getc",
  1719.      *     "livraison_get"
  1720.      * })
  1721.      * @return Marquage[]
  1722.      */
  1723.     public function getMarquages() {
  1724.         $marquage = [];
  1725.         foreach ($this->cubageChantiers as $cubage) {
  1726.             if ($cubage->getMarquage() != null)
  1727.             {
  1728.                 $marquage[$cubage->getMarquage()->getId()] = $cubage->getMarquage();
  1729.             }
  1730.         }
  1731.         return array_values($marquage);
  1732.     }
  1733.     /**
  1734.      * @return CubagePlateforme[]|ArrayCollection
  1735.      */
  1736.     public function getCubagePlateformes() {
  1737.         return $this->cubagePlateformes;
  1738.     }
  1739.     
  1740.     /////////////
  1741.     // Setters //
  1742.     /////////////
  1743.     
  1744.     public function setName(?string $name): self {
  1745.         $this->name $name;
  1746.         return $this;
  1747.     }
  1748.     public function setCommune(?string $commune): self {
  1749.         $this->commune $commune;
  1750.         return $this;
  1751.     }
  1752.     public function setGPS(?string $GPS): self {
  1753.         $this->GPS $GPS;
  1754.         return $this;
  1755.     }
  1756.     public function setLieudit(?string $lieudit): self {
  1757.         $this->lieudit $lieudit;
  1758.         return $this;
  1759.     }
  1760.     public function setChauffeurParDefaut(?Chauffeur $chauffeur): self {
  1761.         return $this->manyToOneSet($chauffeur'chauffeurParDefaut''chantier');
  1762.     }
  1763.     public function setMessagePourChauffeur(?string $messagePourChauffeur): self {
  1764.         $this->messagePourChauffeur $messagePourChauffeur;
  1765.         return $this;
  1766.     }
  1767.     public function setMessageOperateur(?string $messagePourChauffeur): self {
  1768.         $this->messageOperateur $messagePourChauffeur;
  1769.         return $this;
  1770.     }
  1771.     public function setClient(?string $client): self {
  1772.         $this->client $client;
  1773.         return $this;
  1774.     }
  1775.     public function setPayer(?bool $payer): self {
  1776.         $this->payer $payer;
  1777.         return $this;
  1778.     }
  1779.     public function setPaiementPreparer(?bool $payer): self {
  1780.         $this->paiementPreparer $payer;
  1781.         return $this;
  1782.     }
  1783.     public function setBilan(?bool $bilan): self {
  1784.         $this->bilan $bilan;
  1785.         return $this;
  1786.     }
  1787.     public function setConsigne(?string $consigne): self {
  1788.         $this->consigne $consigne;
  1789.         return $this;
  1790.     }
  1791.     public function setDtStart(?\DateTime $dtStart): self {
  1792.         $this->dtStart $dtStart;
  1793.         return $this;
  1794.     }
  1795.     public function setDtEnd(?\DateTime $dtEnd): self {
  1796.         $this->dtEnd $dtEnd;
  1797.         return $this;
  1798.     }
  1799.     public function setDtEndCoupe(?\DateTime $dtEndCoupe): self {
  1800.         $this->dtEndCoupe $dtEndCoupe;
  1801.         return $this;
  1802.     }
  1803.     public function setExpectedDtStart(?\DateTime $expectedDtStart): self {
  1804.         $this->expectedDtStart $expectedDtStart;
  1805.         return $this;
  1806.     }
  1807.     public function setExpectedDtEnd(?\DateTime $expectedDtEnd): self {
  1808.         $this->expectedDtEnd $expectedDtEnd;
  1809.         return $this;
  1810.     }
  1811.     public function setLien1(?string $lien1): self {
  1812.         $this->lien1 $lien1;
  1813.         return $this;
  1814.     }
  1815.     public function setLien12(?string $lien12): self {
  1816.         $this->lien12 $lien12;
  1817.         return $this;
  1818.     }
  1819.     public function setLien13(?string $lien13): self {
  1820.         $this->lien13 $lien13;
  1821.         return $this;
  1822.     }
  1823.     public function setLien2(?string $lien2): self {
  1824.         $this->lien2 $lien2;
  1825.         return $this;
  1826.     }
  1827.     
  1828.     public function setLienVersDrive(?string $lienVersDrive): self {
  1829.         $this->lienVersDrive $lienVersDrive;
  1830.         return $this;
  1831.     }
  1832.     public function setDonneurOrdre(?string $donneurOrdre): self {
  1833.         $this->donneurOrdre $donneurOrdre;
  1834.         return $this;
  1835.     }
  1836.     public function setAdresseDonneurOrdre(?string $adressedonneurOrdre): self {
  1837.         $this->adresseDonneurOrdre $adressedonneurOrdre;
  1838.         return $this;
  1839.     }
  1840.     public function setCPDonneurOrdre(?string $cpdonneurOrdre): self {
  1841.         $this->CPDonneurOrdre $cpdonneurOrdre;
  1842.         return $this;
  1843.     }
  1844.     public function setVilleDonneurOrdre(?string $villedonneurOrdre): self {
  1845.         $this->villeDonneurOrdre $villedonneurOrdre;
  1846.         return $this;
  1847.     }
  1848.     public function setTelephoneDonneurOrdre(?string $telephoneDonneurOrdre): self {
  1849.         $this->telephoneDonneurOrdre $telephoneDonneurOrdre;
  1850.         return $this;
  1851.     }
  1852.     public function setEMailDonneurOrdre(?string $emaildonneurOrdre): self {
  1853.         $this->emailDonneurOrdre $emaildonneurOrdre;
  1854.         return $this;
  1855.     }
  1856.     public function setSocieteAbattage(?string $societeAbattage): self {
  1857.         $this->societeAbattage $societeAbattage;
  1858.         return $this;
  1859.     }
  1860.     public function setContactAbattage(?string $contactAbattage): self {
  1861.         $this->contactAbattage $contactAbattage;
  1862.         return $this;
  1863.     }
  1864.     public function setAdresseAbattage(?string $adresseAbattage): self {
  1865.         $this->adresseAbattage $adresseAbattage;
  1866.         return $this;
  1867.     }
  1868.     public function setCPAbattage(?string $CPAbattage): self {
  1869.         $this->CPAbattage $CPAbattage;
  1870.         return $this;
  1871.     }
  1872.     public function setVilleAbattage(?string $villeAbattage): self {
  1873.         $this->villeAbattage $villeAbattage;
  1874.         return $this;
  1875.     }
  1876.     public function setTelephoneAbattage(?string $telephoneAbattage): self {
  1877.         $this->telephoneAbattage $telephoneAbattage;
  1878.         return $this;
  1879.     }
  1880.     public function setPeriodeAbattage(?string $periodeAbattage): self {
  1881.         $this->periodeAbattage $periodeAbattage;
  1882.         return $this;
  1883.     }
  1884.     public function setSocieteDebardage(?string $societeDebardage): self {
  1885.         $this->societeDebardage $societeDebardage;
  1886.         return $this;
  1887.     }
  1888.     public function setContactDebardage(?string $contactDebardage): self {
  1889.         $this->contactDebardage $contactDebardage;
  1890.         return $this;
  1891.     }
  1892.     public function setAdresseDebardage(?string $adresseDebardage): self {
  1893.         $this->adresseDebardage $adresseDebardage;
  1894.         return $this;
  1895.     }
  1896.     public function setCPDebardage(?string $CPDebardage): self {
  1897.         $this->CPDebardage $CPDebardage;
  1898.         return $this;
  1899.     }
  1900.     public function setVilleDebardage(?string $villeDebardage): self {
  1901.         $this->villeDebardage $villeDebardage;
  1902.         return $this;
  1903.     }
  1904.     public function setTelephoneDebardage(?string $telephoneDebardage): self {
  1905.         $this->telephoneDebardage $telephoneDebardage;
  1906.         return $this;
  1907.     }
  1908.     public function setPeriodeDebardage(?string $periodeDebardage): self {
  1909.         $this->periodeDebardage $periodeDebardage;
  1910.         return $this;
  1911.     }
  1912.     public function setConsignesSecuriteIntervenants(?string $consignessecuriteintervenants): self {
  1913.         $this->consignessecuriteintervenants  $consignessecuriteintervenants;
  1914.         return $this;
  1915.     }
  1916.     public function setSurface(?float $surface): self {
  1917.         $this->surface $surface;
  1918.         return $this;
  1919.     }
  1920.     public function setLatitude(?float $latitude): self {
  1921.         $this->latitude $latitude;
  1922.         return $this;
  1923.     }
  1924.     public function setLongitude(?float $longitude): self {
  1925.         $this->longitude $longitude;
  1926.         return $this;
  1927.     }
  1928.     public function setVolume200(?float $volume200): self {
  1929.         $this->volume200 $volume200;
  1930.         return $this;
  1931.     }
  1932.     public function setFinDeCoupe(?bool $finDeCoupe): self {
  1933.         $this->finDeCoupe $finDeCoupe;
  1934.         return $this;
  1935.     }
  1936.     
  1937.     public function setBoisFini(?bool $boisFini): self {
  1938.         $this->boisFini $boisFini;
  1939.         return $this;
  1940.     }
  1941.     
  1942.     public function setBillonsFini(?bool $boisFini): self {
  1943.         $this->billonsFini $boisFini;
  1944.         return $this;
  1945.     }
  1946.     
  1947.     public function setAbatteur(?Abatteur $abatteur): self {
  1948.         return $this->manyToOneSet($abatteur);
  1949.     }
  1950.     public function setAvecGrumes(?bool $avecGrumes): self {
  1951.         $this->avecGrumes $avecGrumes;
  1952.         return $this;
  1953.     }
  1954.     
  1955.     public function setGrumesDebarde(?bool $grumesDebarde): self {
  1956.         $this->grumesDebarde $grumesDebarde;
  1957.         return $this;
  1958.     }
  1959.     
  1960.     public function setDtEndGrumes(?\DateTime $dtEndGrumes): self {
  1961.         $this->dtEndGrumes $dtEndGrumes;
  1962.         return $this;
  1963.     }
  1964.     public function setAvecBillons(?bool $avecBillons): self {
  1965.         $this->avecBillons $avecBillons;
  1966.         return $this;
  1967.     }
  1968.     
  1969.     public function setBillonsDebarde(?bool $billonsDebarde): self {
  1970.         $this->billonsDebarde $billonsDebarde;
  1971.         return $this;
  1972.     }
  1973.     
  1974.     public function setDtEndBillons(?\DateTime $dtEndBillons): self {
  1975.         $this->dtEndBillons $dtEndBillons;
  1976.         return $this;
  1977.     }
  1978.     public function setDebardeur(?Debardeur $debardeur): self {
  1979.         return $this->manyToOneSet($debardeur);
  1980.     }
  1981.     
  1982.     public function setDebardeurdeux(?Debardeur $debardeurdeux): self {
  1983.         return $this->manyToOneSet($debardeurdeux'debardeurdeux''chantier2');
  1984.     }
  1985.     
  1986.     public function setIntervenants(?string $intervenants): self {
  1987.         $this->intervenants $intervenants;
  1988.         return $this;
  1989.     }
  1990.     public function setInfospe1(?bool $infospe1): self {
  1991.         $this->infospe1 $infospe1;
  1992.         return $this;
  1993.     }
  1994.     public function setInfospe2(?bool $infospe2): self {
  1995.         $this->infospe2 $infospe2;
  1996.         return $this;
  1997.     }
  1998.     public function setInfospe3(?bool $infospe1): self {
  1999.         $this->infospe3 $infospe1;
  2000.         return $this;
  2001.     }
  2002.     public function setInfospe4(?bool $infospe1): self {
  2003.         $this->infospe4 $infospe1;
  2004.         return $this;
  2005.     }
  2006.     public function setInfospe5(?bool $infospe1): self {
  2007.         $this->infospe5 $infospe1;
  2008.         return $this;
  2009.     }
  2010.     public function setInfospe6(?bool $infospe1): self {
  2011.         $this->infospe6 $infospe1;
  2012.         return $this;
  2013.     }
  2014.     public function setInfospe7(?bool $infospe1): self {
  2015.         $this->infospe7 $infospe1;
  2016.         return $this;
  2017.     }
  2018.     public function setInfospe8(?bool $infospe1): self {
  2019.         $this->infospe8 $infospe1;
  2020.         return $this;
  2021.     }
  2022.     public function setInfospe9(?bool $infospe1): self {
  2023.         $this->infospe9 $infospe1;
  2024.         return $this;
  2025.     }
  2026.     public function setInfospe10(?bool $infospe1): self {
  2027.         $this->infospe10 $infospe1;
  2028.         return $this;
  2029.     }
  2030.     public function setInfospe11(?bool $infospe1): self {
  2031.         $this->infospe11 $infospe1;
  2032.         return $this;
  2033.     }
  2034.     public function setInfospe12(?bool $infospe1): self {
  2035.         $this->infospe12 $infospe1;
  2036.         return $this;
  2037.     }
  2038.     public function setInfospe13(?bool $infospe1): self {
  2039.         $this->infospe13 $infospe1;
  2040.         return $this;
  2041.     }
  2042.     public function setInfospe14(?bool $infospe1): self {
  2043.         $this->infospe14 $infospe1;
  2044.         return $this;
  2045.     }
  2046.     public function setInfospe15(?bool $infospe1): self {
  2047.         $this->infospe15 $infospe1;
  2048.         return $this;
  2049.     }
  2050.     public function setInfospe16(?bool $infospe1): self {
  2051.         $this->infospe16 $infospe1;
  2052.         return $this;
  2053.     }
  2054.     public function setInfospe17(?bool $infospe1): self {
  2055.         $this->infospe17 $infospe1;
  2056.         return $this;
  2057.     }
  2058.     public function setInfospe18(?bool $infospe1): self {
  2059.         $this->infospe18 $infospe1;
  2060.         return $this;
  2061.     }
  2062.     public function setInfospe19(?bool $infospe1): self {
  2063.         $this->infospe19 $infospe1;
  2064.         return $this;
  2065.     }
  2066.     public function setInfospe20(?bool $infospe1): self {
  2067.         $this->infospe20 $infospe1;
  2068.         return $this;
  2069.     }
  2070.     public function setInfospe21(?bool $infospe1): self {
  2071.         $this->infospe21 $infospe1;
  2072.         return $this;
  2073.     }
  2074.     public function setInfospe22(?bool $infospe1): self {
  2075.         $this->infospe22 $infospe1;
  2076.         return $this;
  2077.     }
  2078.     public function setInfospe23(?bool $infospe1): self {
  2079.         $this->infospe23 $infospe1;
  2080.         return $this;
  2081.     }
  2082.     public function setInfospe24(?bool $infospe1): self {
  2083.         $this->infospe24 $infospe1;
  2084.         return $this;
  2085.     }
  2086.     public function setInfospe25(?bool $infospe1): self {
  2087.         $this->infospe25 $infospe1;
  2088.         return $this;
  2089.     }
  2090.     public function setInfospe26(?bool $infospe1): self {
  2091.         $this->infospe26 $infospe1;
  2092.         return $this;
  2093.     }
  2094.     public function setInfospe27(?bool $infospe1): self {
  2095.         $this->infospe27 $infospe1;
  2096.         return $this;
  2097.     }
  2098.     public function setInfospe28(?bool $infospe1): self {
  2099.         $this->infospe28 $infospe1;
  2100.         return $this;
  2101.     }
  2102.     public function setValueinfospe28(?float $valueinfospe28): self {
  2103.         $this->valueinfospe28 $valueinfospe28;
  2104.         return $this;
  2105.     }
  2106.     public function setInfospe29(?bool $infospe1): self {
  2107.         $this->infospe29 $infospe1;
  2108.         return $this;
  2109.     }
  2110.     public function setInfospe30(?bool $infospe1): self {
  2111.         $this->infospe30 $infospe1;
  2112.         return $this;
  2113.     }
  2114.     public function setInfospe31(?bool $infospe1): self {
  2115.         $this->infospe31 $infospe1;
  2116.         return $this;
  2117.     }
  2118.     public function setInfospe32(?bool $infospe1): self {
  2119.         $this->infospe32 $infospe1;
  2120.         return $this;
  2121.     }
  2122.     public function setInfospe33(?bool $infospe33): self {
  2123.         $this->infospe33 $infospe33;
  2124.         return $this;
  2125.     }
  2126.     public function setCouverturetelbonne(?bool $couverturetelbonne): self {
  2127.         $this->couverturetelbonne $couverturetelbonne;
  2128.         return $this;
  2129.     }
  2130.     public function setZonecouverte(?string $zonecouverte): self {
  2131.         $this->zonecouverte $zonecouverte;
  2132.         return $this;
  2133.     }
  2134.     public function setFicheobservations(?string $ficheobservations): self {
  2135.         $this->ficheobservations $ficheobservations;
  2136.         return $this;
  2137.     }
  2138.     
  2139.     public function setCoutM3Defaut(?float $coutM3Defaut): self {
  2140.         $this->coutM3Defaut $coutM3Defaut;
  2141.         return $this;
  2142.     }
  2143.     public function setTotalAchatsBois(?float $value): self {
  2144.         $this->totalAchatsBois $value;
  2145.         $this->benefices $this->totalVentes $this->totalAchatsBois $this->totalCoutsExploitation;
  2146.         return $this;
  2147.     }
  2148.     public function setTotalCoutsExploitation(?float $value): self {
  2149.         $this->totalCoutsExploitation $value;
  2150.         $this->benefices $this->totalVentes $this->totalAchatsBois $this->totalCoutsExploitation;
  2151.         return $this;
  2152.     }
  2153.     public function setTotalVentes(?float $value): self {
  2154.         $this->totalVentes $value;
  2155.         $this->benefices $this->totalVentes $this->totalAchatsBois $this->totalCoutsExploitation;
  2156.         return $this;
  2157.     }
  2158.     public function setBenefices(?float $value): self {
  2159.         $this->benefices $value;
  2160.         return $this;
  2161.     }
  2162.     public function setFinancialClose(?bool $value): self {
  2163.         $this->financialClose $value;
  2164.         return $this;
  2165.     }
  2166.     /////////
  2167.     // Add //
  2168.     /////////
  2169.     public function addChantierAutreClient(ChantierAutreClient $chantierAutreClient): self {
  2170.         return $this->oneToManyAdd($chantierAutreClient);
  2171.     }
  2172.     
  2173.     public function addDocumentChantier(DocumentChantier $document): self {
  2174.         return $this->oneToManyAdd($document);
  2175.     }
  2176.     public function addPhotoChantiers(DocumentChantier $document): self {
  2177.         return $this->oneToManyAdd($document'photoChantiers''chantier2');
  2178.     }
  2179.     public function addDocumentChauffeurs(DocumentChantier $document): self {
  2180.         return $this->oneToManyAdd($document'documentChauffeurs''chantier3');
  2181.     }
  2182.     public function addIntervention(Intervention $intervention): self {
  2183.         return $this->oneToManyAdd($intervention);
  2184.     }
  2185.     public function addPrestation(Prestation $prestation): self {
  2186.         return $this->oneToManyAdd($prestation);
  2187.     }
  2188.     public function addCubageLivraison(CubageLivraison $cubageLivraison): self {
  2189.         return $this->oneToManyAdd($cubageLivraison);
  2190.     }
  2191.     public function addCubagePlateforme(CubagePlateforme $cubagePlateforme): self {
  2192.         return $this->oneToManyAdd($cubagePlateforme);
  2193.     }
  2194.     
  2195.     public function addCubageChantier(CubageChantier $cubageChantier): self {
  2196.         return $this->oneToManyAdd($cubageChantier);
  2197.     }
  2198.     public function addCubageChantierTest(CubageChantierTest $cubageChantier): self {
  2199.         return $this->oneToManyAdd($cubageChantier);
  2200.     }
  2201.     public function addCubageChantierRestant(CubageChantierRestant $cubageChantierRestant): self {
  2202.         return $this->oneToManyAdd($cubageChantierRestant);
  2203.     }
  2204.     
  2205.     public function addFraisChantier(FraisChantier $fraisChantier): self {
  2206.         return $this->oneToManyAdd($fraisChantier);
  2207.     }
  2208.     
  2209.     ////////////
  2210.     // Remove //
  2211.     ////////////
  2212.     public function removeChantierAutreClient(ChantierAutreClient $chantierAutreClient): self {
  2213.         return $this->oneToManyRemove($chantierAutreClient);
  2214.     }
  2215.         public function removeDocumentChantier(DocumentChantier $document): self {
  2216.         return $this->oneToManyRemove($document);
  2217.     }
  2218.     
  2219.     public function removePhotoChantiers(DocumentChantier $document): self {
  2220.         return $this->oneToManyRemove($document);
  2221.     }
  2222.     
  2223.     public function removeDocumentChauffeurs(DocumentChantier $document): self {
  2224.         return $this->oneToManyRemove($document);
  2225.     }
  2226.     
  2227.     public function removeIntervention(Intervention $intervention): self {
  2228.         return $this->oneToManyRemove($intervention);
  2229.     }
  2230.     
  2231.     public function removePrestation(Prestation $prestation): self {
  2232.         return $this->oneToManyRemove($prestation);
  2233.     }
  2234.     public function removeCubageLivraison(CubageLivraison $cubageLivraison): self {
  2235.         return $this->oneToManyRemove($cubageLivraison);
  2236.     }
  2237.     public function removeCubagePlateforme(CubagePlateforme $cubagePlateforme): self {
  2238.         return $this->oneToManyRemove($cubagePlateforme);
  2239.     }
  2240.     
  2241.     public function removeCubageChantier(CubageChantier $cubageChantier): self {
  2242.         return $this->oneToManyRemove($cubageChantier);
  2243.     }
  2244.     public function removeCubageChantierRestant(CubageChantierRestant $cubageChantier): self {
  2245.         return $this->oneToManyRemove($cubageChantier);
  2246.     }
  2247.     public function removeFraisChantier(FraisChantier $fraisChantier): self {
  2248.         return $this->oneToManyRemove($fraisChantier);
  2249.     }
  2250.     
  2251. }