<?php
namespace App\Entity;
use App\Repository\ChantierRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\Mapping as ORM;
use GollumSF\EntityRelationSetter\ManyToOneSetter;
use GollumSF\EntityRelationSetter\OneToManySetter;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Table()
* @ORM\Entity(repositoryClass=ChantierRepository::class)
*/
class Chantier {
use ManyToOneSetter;
use OneToManySetter;
/**
* @ORM\Column(type="integer", length=25, options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @Groups({
* "chantier_get", "chantier_getc",
* "prestation_get", "prestation_getc",
* "cubageChantierRestant_getc",
* "cubageChantier_get", "cubageChantier_getc",
* "cubageLivraison_get", "cubageLivraison_getc",
* "cubagePlateforme_get", "cubagePlateforme_getc",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "livraison_get"
* })
*
* @var int
*/
private $id;
/**
* @ORM\Column(type="string", length=100)
* @Groups({
* "chantier_get", "chantier_getc",
* "prestation_get", "prestation_getc",
* "cubageChantierRestant_getc",
* "cubageChantier_get", "cubageChantier_getc",
* "cubageLivraison_get", "cubageLivraison_getc",
* "cubagePlateforme_get", "cubagePlateforme_getc",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "livraison_get"
* })
* @Assert\NotBlank(groups={"chantier_post", "chantier_put"})
*
* @var string
*/
private $name = 'CH-?????';
/**
* @ORM\OneToMany(targetEntity=ChantierAutreClient::class, mappedBy="chantier", cascade={"persist", "remove"})
* @Groups({
* "chantier_get", "chantier_post", "chantier_put"
* })
*
* @Assert\Valid(groups={"chantier_post", "chantier_put"})
*
*
* @var ChantierAutreClient[]|ArrayCollection
*/
private $chantierAutreClients;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "cubageChantierRestant_getc",
* "cubageLivraison_getc",
* })
*
* @var string
*/
private $commune;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* })
*
* @var string
*/
private $GPS;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "cubageChantierRestant_getc",
* })
*
* @var string
*/
private $lieudit;
/**
* @ORM\ManyToOne(targetEntity=Chauffeur::class, inversedBy="chantiers", fetch="EAGER")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* })
*
* @var string
*/
private $chauffeurParDefaut;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "cubageChantierRestant_getc",
* })
*
* @var string
*/
private $messagePourChauffeur;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "cubageChantierRestant_getc",
* })
*
* @var string
*/
private $messageOperateur;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "cubageLivraisonPlateforme_get", "cubageLivraisonPlateforme_getc",
* "cubageChantierRestant_getc",
* "cubageLivraison_getc",
* })
*
* @var string
*/
private $client;
/**
* @ORM\OneToMany(targetEntity=CubageChantierRestant::class, mappedBy="chantier", orphanRemoval=true, fetch="EXTRA_LAZY")
*
* @var CubageChantierRestant[]|ArrayCollection
*/
private $cubageChantierRestants;
/**
* @ORM\OneToMany(targetEntity=FraisChantier::class, mappedBy="chantier", cascade={"persist", "remove"})
* @Groups({
* "chantier_get", "chantier_post", "chantier_put"
* })
*
* @Assert\Valid(groups={"chantier_post", "chantier_put"})
*
*
* @var FraisChantier[]|ArrayCollection
*/
private $fraisChantiers;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var bool
*/
private $payer = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var bool
*/
private $paiementPreparer = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var bool
*/
private $bilan = false;
/**
* @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="chantiers", fetch="EAGER")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put",
* "prestation_get",
* "cubageLivraison_get", "cubageLivraison_getc"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var Contact
*/
//private $contact;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var bool
*/
private $avecGrumes = true;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @Assert\NotNull(groups={"chantier_post", "chantier_put"})
*
* @var bool
*/
private $avecBillons = false;
/**
* @ORM\ManyToOne(targetEntity=Abatteur::class, inversedBy="chantiers", fetch="EAGER")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @var Abatteur
*/
private $abatteur;
/**
* @ORM\ManyToOne(targetEntity=Debardeur::class, inversedBy="chantiers", fetch="EAGER")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @var Debardeur
*/
private $debardeur;
/**
* @ORM\ManyToOne(targetEntity=Debardeur::class, inversedBy="chantiers2", fetch="EAGER")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @Groups({
* "chantier_get", "chantier_getc", "chantier_post", "chantier_put"
* })
*
* @var Debardeur
*/
private $debardeurdeux;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
*
* @var string
*/
private $intervenants;
/**
* @ORM\Column(type="text", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var string
*/
private $consigne;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $dtStart;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $dtEnd; // fin de chantier
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $dtEndCoupe; // fin de coupe
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $expectedDtStart;
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $expectedDtEnd;
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $lien1; // localisation 1
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $lien12; // localisation 2
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $lien13; // localisation 3
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $lien2; // accès chantier
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $lienVersDrive;
/**
* @ORM\Column(type="string", length=45, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $donneurOrdre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $adresseDonneurOrdre;
/**
* @ORM\Column(type="string", length=10, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $CPDonneurOrdre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $villeDonneurOrdre;
/**
* @ORM\Column(type="string", length=45, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $telephoneDonneurOrdre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $emailDonneurOrdre;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $societeAbattage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $contactAbattage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $adresseAbattage;
/**
* @ORM\Column(type="string", length=10, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $CPAbattage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $villeAbattage;
/**
* @ORM\Column(type="string", length=45, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $telephoneAbattage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $periodeAbattage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $societeDebardage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $contactDebardage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $adresseDebardage;
/**
* @ORM\Column(type="string", length=10, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=10, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $CPDebardage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $villeDebardage;
/**
* @ORM\Column(type="string", length=45, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=45, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $telephoneDebardage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $periodeDebardage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $consignessecuriteintervenants;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=40, groups={"chantier_put", "chantier_post"})
*
* @var float
*/
private $latitude;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=40, groups={"chantier_put", "chantier_post"})
*
* @var float
*/
private $longitude;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var float
*/
private $surface;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var float
*/
private $volume200;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "cubageChantierRestant_getc",
* })
*
* @var boolean
*/
private $finDeCoupe = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $boisFini = false; // grumes livré
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $billonsFini = false; // billons livré
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $grumesDebarde = false; // grume debardé
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $dtEndGrumes; // Grumes debardé
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $billonsDebarde = false; // billonss debardé
/**
* @ORM\Column(type="datetime", nullable=true)
* @Groups({
* "chantier_get", "chantier_getc", "chantier_put", "chantier_post",
* "prestation_get"
* })
*
* @var \DateTime
*/
private $dtEndBillons; // billons debardé
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe1 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe2 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe3 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe4 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe5 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe6 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe7 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe8 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe9 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe10 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe11 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe12 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe13 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe14 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe15 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe16 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe17 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe18 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe19 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe20 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe21 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe22 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe23 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe24 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe25 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe26 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe27 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe28 = false;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var float
*/
private $valueinfospe28 = 0;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe29 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe30 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe31 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe32 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $infospe33 = false;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $couverturetelbonne = true;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=255, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $zonecouverte;
/**
* @ORM\Column(type="string", length=500, nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
* @Assert\Length(max=500, groups={"chantier_put", "chantier_post"})
*
* @var string
*/
private $ficheobservations;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var float
*/
private $coutM3Defaut;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var float
*/
private $totalAchatsBois;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var float
*/
private $totalCoutsExploitation;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var float
*/
private $totalVentes;
/**
* @ORM\Column(type="float", nullable=true)
* @Groups({
* "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var float
*/
private $benefices;
/**
* @ORM\Column(type="boolean")
* @Groups({
* "chantier_getc", "chantier_get", "chantier_put", "chantier_post"
* })
*
* @var boolean
*/
private $financialClose = false;
/**
* @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier", cascade={"remove"})
* @Groups({
* "chantier_get"
* })
*
* @var DocumentChantier[]|ArrayCollection
*/
private $documentChantiers;
/**
* @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier2", cascade={"remove"})
* @Groups({
* "chantier_get"
* })
*
* @var DocumentChantier[]|ArrayCollection
*/
private $photoChantiers;
/**
* @ORM\OneToMany(targetEntity=DocumentChantier::class, mappedBy="chantier3", cascade={"remove"})
* @Groups({
* "chantier_get"
* })
*
* @var DocumentChantier[]|ArrayCollection
*/
private $documentChauffeurs;
/**
* @ORM\OneToMany(targetEntity=Intervention::class, mappedBy="chantier")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @var Intervention[]|ArrayCollection
*/
private $interventions;
/**
* @ORM\OneToMany(targetEntity=Prestation::class, mappedBy="chantier", fetch="EAGER")
* @ORM\JoinColumn(onDelete="SET NULL")
* @Groups({
* "chantier_get"
* })
*
* @var Prestation[]|ArrayCollection
*/
private $prestations;
/**
* @ORM\OneToMany(targetEntity=CubageLivraison::class, mappedBy="chantier")
* @ORM\JoinColumn(onDelete="SET NULL")
*
* @Groups({
* "chantier_get"
* })
*
* @var CubageLivraison[]|ArrayCollection
*/
private $cubageLivraisons;
/**
* @ORM\OneToMany(targetEntity=CubageChantier::class, mappedBy="chantier", cascade={"remove"})
*
* @Groups({
* "chantier_get",
* "cubagePlateforme_get", "cubagePlateforme_getc", "cubagePlateforme_post", "cubagePlateforme_put",
* })
*
* @var CubageChantier[]|ArrayCollection
*/
private $cubageChantiers;
/**
* @ORM\OneToMany(targetEntity=CubageChantierTest::class, mappedBy="chantier", cascade={"remove"})
*
*
* @var CubageChantierTest[]|ArrayCollection
*/
private $cubageChantierTests;
/**
* @ORM\OneToMany(targetEntity=CubagePlateforme::class, mappedBy="chantier", orphanRemoval=true, fetch="EXTRA_LAZY")
*
* @var CubagePlateforme[]|ArrayCollection
*/
private $cubagePlateformes;
public function __construct() {
$this->setCoutM3Defaut(15);
$this->chantierAutreClients = new ArrayCollection();
$this->cubageChantierRestants = new ArrayCollection();
$this->setDonneurOrdre("CHIZELLE FRERES");
$this->setAdresseDonneurOrdre("les rivières");
$this->setCPDonneurOrdre("69 870");
$this->setVilleDonneurOrdre("St bonnet le troncy");
$this->setTelephoneDonneurOrdre("06 08 92 57 46");
$this->setEMailDonneurOrdre("chizellefr@gmail.com");
$this->setSocieteAbattage("CHIZELLE FRERES");
$this->setContactAbattage("CHIZELLE Yves");
$this->setAdresseAbattage("les rivières");
$this->setCPAbattage("69 870");
$this->setVilleAbattage("St bonnet le troncy");
$this->setTelephoneAbattage("06 08 92 57 46");
$this->setSocieteDebardage("CHIZELLE FRERES");
$this->setContactDebardage("CHIZELLE Yves");
$this->setAdresseDebardage("les rivières");
$this->setCPDebardage("69 870");
$this->setVilleDebardage("St bonnet le troncy");
$this->setTelephoneDebardage("06 08 92 57 46");
$this->documentChantiers = new ArrayCollection();
$this->photoChantiers = new ArrayCollection();
$this->documentChauffeurs = new ArrayCollection();
$this->interventions = new ArrayCollection();
$this->prestations = new ArrayCollection();
$this->cubageLivraisons = new ArrayCollection();
$this->cubagePlateformes = new ArrayCollection();
$this->cubageChantiers = new ArrayCollection();
$this->cubageChantierTests = new ArrayCollection();
$this->fraisChantiers = new ArrayCollection();
$this->setTotalAchatsBois(0);
$this->setTotalCoutsExploitation(0);
$this->setTotalVentes(0);
$this->setBenefices(0);
$this->setFinancialClose(false);
}
/////////////
// Getters //
/////////////
public function getId(): ?int {
return $this->id;
}
public function getName(): string {
return $this->name;
}
/**
* @return ArrayCollection|ChantierAutreClients[]
*/
public function getChantierAutreClients() {
return $this->chantierAutreClients;
}
public function getCommune(): ?string {
return $this->commune;
}
public function getGPS(): ?string {
return $this->GPS;
}
public function getLieudit(): ?string {
return $this->lieudit;
}
public function getChauffeurParDefaut(): ?Chauffeur {
return $this->chauffeurParDefaut;
}
public function getMessagePourChauffeur(): ?string {
return $this->messagePourChauffeur;
}
public function getMessageOperateur(): ?string {
return $this->messageOperateur;
}
public function getClient(): ?string {
return $this->client;
}
public function isPayer(): bool {
return $this->payer;
}
public function isPaiementPreparer(): bool {
return $this->paiementPreparer;
}
public function getBilan(): bool {
return $this->bilan;
}
/**
* @return CubageChantier[]|ArrayCollection
*/
public function getCubageChantiers() {
return $this->cubageChantiers;
}
/**
* @return CubageChantierTest[]|ArrayCollection
*/
public function getCubageChantierTests() {
return $this->cubageChantierTests;
}
/**
* @return ArrayCollection|FraisChantier[]
*/
public function getFraisChantiers() {
return $this->fraisChantiers;
}
public function getConsigne(): ?string {
return $this->consigne;
}
public function getDtStart(): ?\DateTime {
return $this->dtStart;
}
public function getDtEnd(): ?\DateTime {
return $this->dtEnd;
}
public function getDtEndCoupe(): ?\DateTime {
return $this->dtEndCoupe;
}
public function getExpectedDtStart(): ?\DateTime {
return $this->expectedDtStart;
}
public function getExpectedDtEnd(): ?\DateTime {
return $this->expectedDtEnd;
}
public function getLien1(): ?string {
return $this->lien1;
}
public function getLien12(): ?string {
return $this->lien12;
}
public function getLien13(): ?string {
return $this->lien13;
}
public function getLien2(): ?string {
return $this->lien2;
}
public function getLienVersDrive(): ?string {
return $this->lienVersDrive;
}
public function getDonneurOrdre(): ?string {
return $this->donneurOrdre;
}
public function getAdresseDonneurOrdre(): ?string {
return $this->adresseDonneurOrdre;
}
public function getCPDonneurOrdre(): ?string {
return $this->CPDonneurOrdre;
}
public function getVilleDonneurOrdre(): ?string {
return $this->villeDonneurOrdre;
}
public function getTelephoneDonneurOrdre(): ?string {
return $this->telephoneDonneurOrdre;
}
public function getEMailDonneurOrdre(): ?string {
return $this->emailDonneurOrdre;
}
public function getSocieteAbattage(): ?string {
return $this->societeAbattage;
}
public function getContactAbattage(): ?string {
return $this->contactAbattage;
}
public function getAdresseAbattage(): ?string {
return $this->adresseAbattage;
}
public function getCPAbattage(): ?string {
return $this->CPAbattage;
}
public function getVilleAbattage(): ?string {
return $this->villeAbattage;
}
public function getTelephoneAbattage(): ?string {
return $this->telephoneAbattage;
}
public function getPeriodeAbattage(): ?string {
return $this->periodeAbattage;
}
public function getSocieteDebardage(): ?string {
return $this->societeDebardage;
}
public function getContactDebardage(): ?string {
return $this->contactDebardage;
}
public function getAdresseDebardage(): ?string {
return $this->adresseDebardage;
}
public function getCPDebardage(): ?string {
return $this->CPDebardage;
}
public function getVilleDebardage(): ?string {
return $this->villeDebardage;
}
public function getTelephoneDebardage(): ?string {
return $this->telephoneDebardage;
}
public function getPeriodeDebardage(): ?string {
return $this->periodeDebardage;
}
public function getConsignesSecuriteIntervenants(): ?string {
return $this->consignessecuriteintervenants;
}
public function getAbatteur(): ?Abatteur {
return $this->abatteur;
}
public function isAvecGrumes(): bool {
return $this->avecGrumes;
}
public function isGrumesDebarde(): bool {
return $this->grumesDebarde;
}
public function getDtEndGrumes(): ?\DateTime {
return $this->dtEndGrumes;
}
public function getDebardeur(): ?Debardeur {
return $this->debardeur;
}
public function isAvecBillons(): bool {
return $this->avecBillons;
}
public function isBillonsDebarde(): bool {
return $this->billonsDebarde;
}
public function getDtEndBillons(): ?\DateTime {
return $this->dtEndBillons;
}
public function getDebardeurdeux(): ?Debardeur {
return $this->debardeurdeux;
}
public function getIntervenants(): ?string {
return $this->intervenants;
}
public function getSurface(): ?float {
return $this->surface;
}
public function getLatitude(): ?float {
return $this->latitude;
}
public function getLongitude(): ?float {
return $this->longitude;
}
public function getVolume200(): ?float {
return $this->volume200;
}
public function getFinDeCoupe(): ?bool {
return $this->finDeCoupe;
}
public function getBoisFini(): ?bool {
return $this->boisFini;
}
public function getBillonsFini(): ?bool {
return $this->billonsFini;
}
public function getInfospe1(): ?bool {
return $this->infospe1;
}
public function getInfospe2(): ?bool {
return $this->infospe2;
}
public function getInfospe3(): ?bool {
return $this->infospe3;
}
public function getInfospe4(): ?bool {
return $this->infospe4;
}
public function getInfospe5(): ?bool {
return $this->infospe5;
}
public function getInfospe6(): ?bool {
return $this->infospe6;
}
public function getInfospe7(): ?bool {
return $this->infospe7;
}
public function getInfospe8(): ?bool {
return $this->infospe8;
}
public function getInfospe9(): ?bool {
return $this->infospe9;
}
public function getInfospe10(): ?bool {
return $this->infospe10;
}
public function getInfospe11(): ?bool {
return $this->infospe11;
}
public function getInfospe12(): ?bool {
return $this->infospe12;
}
public function getInfospe13(): ?bool {
return $this->infospe13;
}
public function getInfospe14(): ?bool {
return $this->infospe14;
}
public function getInfospe15(): ?bool {
return $this->infospe15;
}
public function getInfospe16(): ?bool {
return $this->infospe16;
}
public function getInfospe17(): ?bool {
return $this->infospe17;
}
public function getInfospe18(): ?bool {
return $this->infospe18;
}
public function getInfospe19(): ?bool {
return $this->infospe19;
}
public function getInfospe20(): ?bool {
return $this->infospe20;
}
public function getInfospe21(): ?bool {
return $this->infospe21;
}
public function getInfospe22(): ?bool {
return $this->infospe22;
}
public function getInfospe23(): ?bool {
return $this->infospe23;
}
public function getInfospe24(): ?bool {
return $this->infospe24;
}
public function getInfospe25(): ?bool {
return $this->infospe25;
}
public function getInfospe26(): ?bool {
return $this->infospe26;
}
public function getInfospe27(): ?bool {
return $this->infospe27;
}
public function getInfospe28(): ?bool {
return $this->infospe28;
}
public function getValueinfospe28(): ?float {
return $this->valueinfospe28;
}
public function getInfospe29(): ?bool {
return $this->infospe29;
}
public function getInfospe30(): ?bool {
return $this->infospe30;
}
public function getInfospe31(): ?bool {
return $this->infospe31;
}
public function getInfospe32(): ?bool {
return $this->infospe32;
}
public function getInfospe33(): ?bool {
return $this->infospe33;
}
public function getCouverturetelbonne(): ?bool {
return $this->couverturetelbonne;
}
public function getZonecouverte(): ?string {
return $this->zonecouverte;
}
public function getFicheobservations(): ?string {
return $this->ficheobservations;
}
public function getCoutM3Defaut(): ?float {
return $this->coutM3Defaut;
}
public function getTotalAchatsBois(): ?float {
return $this->totalAchatsBois;
}
public function getTotalCoutsExploitation(): ?float {
return $this->totalCoutsExploitation;
}
public function getTotalVentes(): ?float {
return $this->totalVentes;
}
public function getBenefices(): ?float {
return $this->benefices;
}
public function getFinancialClose(): ?bool {
return $this->financialClose;
}
/**
* @return DocumentChantier[]|ArrayCollection
*/
public function getDocumentChantiers() {
return $this->documentChantiers;
}
/**
* @return DocumentChantier[]|ArrayCollection
*/
public function getPhotoChantiers() {
return $this->photoChantiers;
}
/**
* @return DocumentChantier[]|ArrayCollection
*/
public function getDocumentChauffeurs() {
return $this->documentChauffeurs;
}
/**
* @return Intervention[]|ArrayCollection
*/
public function getInterventions() {
return $this->interventions;
}
/**
* @return Prestation[]|ArrayCollection
*/
public function getPrestations() {
return $this->prestations;
}
/**
* @return Prestation[]|ArrayCollection
*/
public function getPrestationsBuy() {
return $this->prestations->filter(function (Prestation $prestation) {
return $prestation->getPrestationType() && !$prestation->getPrestationType()->isSale();
});
}
/**
* @return Prestation[]|ArrayCollection
*/
public function getPrestationsSale() {
return $this->prestations->filter(function (Prestation $prestation) {
return $prestation->getPrestationType() && $prestation->getPrestationType()->isSale();
});
}
/**
* @return CubageLivraison[]|ArrayCollection
*/
public function getCubageLivraisons() {
return $this->cubageLivraisons;
}
/**
* @return CubageChantierRestant[]|ArrayCollection
* []|ArrayCollection
*/
public function getCubageChantierRestants() {
return $this->cubageChantierRestants;
}
/**
* @Groups({
* "chantier_get", "chantier_getc",
* "livraison_get"
* })
* @return BoisType[]
*/
public function getBoisTypes() {
$bois = [];
foreach ($this->cubageChantiers as $cubage) {
$bois[$cubage->getBoisType()->getId()] = $cubage->getBoisType();
}
return array_values($bois);
}
/**
* @Groups({
* "chantier_get", "chantier_getc",
* "livraison_get"
* })
* @return BoisQuality[]
*/
public function getBoisQualities() {
$bois = [];
foreach ($this->cubageChantiers as $cubage) {
$bois[$cubage->getBoisQuality()->getId()] = $cubage->getBoisQuality();
}
return array_values($bois);
}
/**
* @Groups({
* "chantier_get", "chantier_getc",
* "livraison_get"
* })
* @return BoisSize[]
*/
public function getBoisSizes() {
$bois = [];
foreach ($this->cubageChantiers as $cubage) {
$bois[$cubage->getBoisSize()->getId()] = $cubage->getBoisSize();
}
return array_values($bois);
}
/**
* @Groups({
* "chantier_get", "chantier_getc",
* "livraison_get"
* })
* @return Marquage[]
*/
public function getMarquages() {
$marquage = [];
foreach ($this->cubageChantiers as $cubage) {
if ($cubage->getMarquage() != null)
{
$marquage[$cubage->getMarquage()->getId()] = $cubage->getMarquage();
}
}
return array_values($marquage);
}
/**
* @return CubagePlateforme[]|ArrayCollection
*/
public function getCubagePlateformes() {
return $this->cubagePlateformes;
}
/////////////
// Setters //
/////////////
public function setName(?string $name): self {
$this->name = $name;
return $this;
}
public function setCommune(?string $commune): self {
$this->commune = $commune;
return $this;
}
public function setGPS(?string $GPS): self {
$this->GPS = $GPS;
return $this;
}
public function setLieudit(?string $lieudit): self {
$this->lieudit = $lieudit;
return $this;
}
public function setChauffeurParDefaut(?Chauffeur $chauffeur): self {
return $this->manyToOneSet($chauffeur, 'chauffeurParDefaut', 'chantier');
}
public function setMessagePourChauffeur(?string $messagePourChauffeur): self {
$this->messagePourChauffeur = $messagePourChauffeur;
return $this;
}
public function setMessageOperateur(?string $messagePourChauffeur): self {
$this->messageOperateur = $messagePourChauffeur;
return $this;
}
public function setClient(?string $client): self {
$this->client = $client;
return $this;
}
public function setPayer(?bool $payer): self {
$this->payer = $payer;
return $this;
}
public function setPaiementPreparer(?bool $payer): self {
$this->paiementPreparer = $payer;
return $this;
}
public function setBilan(?bool $bilan): self {
$this->bilan = $bilan;
return $this;
}
public function setConsigne(?string $consigne): self {
$this->consigne = $consigne;
return $this;
}
public function setDtStart(?\DateTime $dtStart): self {
$this->dtStart = $dtStart;
return $this;
}
public function setDtEnd(?\DateTime $dtEnd): self {
$this->dtEnd = $dtEnd;
return $this;
}
public function setDtEndCoupe(?\DateTime $dtEndCoupe): self {
$this->dtEndCoupe = $dtEndCoupe;
return $this;
}
public function setExpectedDtStart(?\DateTime $expectedDtStart): self {
$this->expectedDtStart = $expectedDtStart;
return $this;
}
public function setExpectedDtEnd(?\DateTime $expectedDtEnd): self {
$this->expectedDtEnd = $expectedDtEnd;
return $this;
}
public function setLien1(?string $lien1): self {
$this->lien1 = $lien1;
return $this;
}
public function setLien12(?string $lien12): self {
$this->lien12 = $lien12;
return $this;
}
public function setLien13(?string $lien13): self {
$this->lien13 = $lien13;
return $this;
}
public function setLien2(?string $lien2): self {
$this->lien2 = $lien2;
return $this;
}
public function setLienVersDrive(?string $lienVersDrive): self {
$this->lienVersDrive = $lienVersDrive;
return $this;
}
public function setDonneurOrdre(?string $donneurOrdre): self {
$this->donneurOrdre = $donneurOrdre;
return $this;
}
public function setAdresseDonneurOrdre(?string $adressedonneurOrdre): self {
$this->adresseDonneurOrdre = $adressedonneurOrdre;
return $this;
}
public function setCPDonneurOrdre(?string $cpdonneurOrdre): self {
$this->CPDonneurOrdre = $cpdonneurOrdre;
return $this;
}
public function setVilleDonneurOrdre(?string $villedonneurOrdre): self {
$this->villeDonneurOrdre = $villedonneurOrdre;
return $this;
}
public function setTelephoneDonneurOrdre(?string $telephoneDonneurOrdre): self {
$this->telephoneDonneurOrdre = $telephoneDonneurOrdre;
return $this;
}
public function setEMailDonneurOrdre(?string $emaildonneurOrdre): self {
$this->emailDonneurOrdre = $emaildonneurOrdre;
return $this;
}
public function setSocieteAbattage(?string $societeAbattage): self {
$this->societeAbattage = $societeAbattage;
return $this;
}
public function setContactAbattage(?string $contactAbattage): self {
$this->contactAbattage = $contactAbattage;
return $this;
}
public function setAdresseAbattage(?string $adresseAbattage): self {
$this->adresseAbattage = $adresseAbattage;
return $this;
}
public function setCPAbattage(?string $CPAbattage): self {
$this->CPAbattage = $CPAbattage;
return $this;
}
public function setVilleAbattage(?string $villeAbattage): self {
$this->villeAbattage = $villeAbattage;
return $this;
}
public function setTelephoneAbattage(?string $telephoneAbattage): self {
$this->telephoneAbattage = $telephoneAbattage;
return $this;
}
public function setPeriodeAbattage(?string $periodeAbattage): self {
$this->periodeAbattage = $periodeAbattage;
return $this;
}
public function setSocieteDebardage(?string $societeDebardage): self {
$this->societeDebardage = $societeDebardage;
return $this;
}
public function setContactDebardage(?string $contactDebardage): self {
$this->contactDebardage = $contactDebardage;
return $this;
}
public function setAdresseDebardage(?string $adresseDebardage): self {
$this->adresseDebardage = $adresseDebardage;
return $this;
}
public function setCPDebardage(?string $CPDebardage): self {
$this->CPDebardage = $CPDebardage;
return $this;
}
public function setVilleDebardage(?string $villeDebardage): self {
$this->villeDebardage = $villeDebardage;
return $this;
}
public function setTelephoneDebardage(?string $telephoneDebardage): self {
$this->telephoneDebardage = $telephoneDebardage;
return $this;
}
public function setPeriodeDebardage(?string $periodeDebardage): self {
$this->periodeDebardage = $periodeDebardage;
return $this;
}
public function setConsignesSecuriteIntervenants(?string $consignessecuriteintervenants): self {
$this->consignessecuriteintervenants = $consignessecuriteintervenants;
return $this;
}
public function setSurface(?float $surface): self {
$this->surface = $surface;
return $this;
}
public function setLatitude(?float $latitude): self {
$this->latitude = $latitude;
return $this;
}
public function setLongitude(?float $longitude): self {
$this->longitude = $longitude;
return $this;
}
public function setVolume200(?float $volume200): self {
$this->volume200 = $volume200;
return $this;
}
public function setFinDeCoupe(?bool $finDeCoupe): self {
$this->finDeCoupe = $finDeCoupe;
return $this;
}
public function setBoisFini(?bool $boisFini): self {
$this->boisFini = $boisFini;
return $this;
}
public function setBillonsFini(?bool $boisFini): self {
$this->billonsFini = $boisFini;
return $this;
}
public function setAbatteur(?Abatteur $abatteur): self {
return $this->manyToOneSet($abatteur);
}
public function setAvecGrumes(?bool $avecGrumes): self {
$this->avecGrumes = $avecGrumes;
return $this;
}
public function setGrumesDebarde(?bool $grumesDebarde): self {
$this->grumesDebarde = $grumesDebarde;
return $this;
}
public function setDtEndGrumes(?\DateTime $dtEndGrumes): self {
$this->dtEndGrumes = $dtEndGrumes;
return $this;
}
public function setAvecBillons(?bool $avecBillons): self {
$this->avecBillons = $avecBillons;
return $this;
}
public function setBillonsDebarde(?bool $billonsDebarde): self {
$this->billonsDebarde = $billonsDebarde;
return $this;
}
public function setDtEndBillons(?\DateTime $dtEndBillons): self {
$this->dtEndBillons = $dtEndBillons;
return $this;
}
public function setDebardeur(?Debardeur $debardeur): self {
return $this->manyToOneSet($debardeur);
}
public function setDebardeurdeux(?Debardeur $debardeurdeux): self {
return $this->manyToOneSet($debardeurdeux, 'debardeurdeux', 'chantier2');
}
public function setIntervenants(?string $intervenants): self {
$this->intervenants = $intervenants;
return $this;
}
public function setInfospe1(?bool $infospe1): self {
$this->infospe1 = $infospe1;
return $this;
}
public function setInfospe2(?bool $infospe2): self {
$this->infospe2 = $infospe2;
return $this;
}
public function setInfospe3(?bool $infospe1): self {
$this->infospe3 = $infospe1;
return $this;
}
public function setInfospe4(?bool $infospe1): self {
$this->infospe4 = $infospe1;
return $this;
}
public function setInfospe5(?bool $infospe1): self {
$this->infospe5 = $infospe1;
return $this;
}
public function setInfospe6(?bool $infospe1): self {
$this->infospe6 = $infospe1;
return $this;
}
public function setInfospe7(?bool $infospe1): self {
$this->infospe7 = $infospe1;
return $this;
}
public function setInfospe8(?bool $infospe1): self {
$this->infospe8 = $infospe1;
return $this;
}
public function setInfospe9(?bool $infospe1): self {
$this->infospe9 = $infospe1;
return $this;
}
public function setInfospe10(?bool $infospe1): self {
$this->infospe10 = $infospe1;
return $this;
}
public function setInfospe11(?bool $infospe1): self {
$this->infospe11 = $infospe1;
return $this;
}
public function setInfospe12(?bool $infospe1): self {
$this->infospe12 = $infospe1;
return $this;
}
public function setInfospe13(?bool $infospe1): self {
$this->infospe13 = $infospe1;
return $this;
}
public function setInfospe14(?bool $infospe1): self {
$this->infospe14 = $infospe1;
return $this;
}
public function setInfospe15(?bool $infospe1): self {
$this->infospe15 = $infospe1;
return $this;
}
public function setInfospe16(?bool $infospe1): self {
$this->infospe16 = $infospe1;
return $this;
}
public function setInfospe17(?bool $infospe1): self {
$this->infospe17 = $infospe1;
return $this;
}
public function setInfospe18(?bool $infospe1): self {
$this->infospe18 = $infospe1;
return $this;
}
public function setInfospe19(?bool $infospe1): self {
$this->infospe19 = $infospe1;
return $this;
}
public function setInfospe20(?bool $infospe1): self {
$this->infospe20 = $infospe1;
return $this;
}
public function setInfospe21(?bool $infospe1): self {
$this->infospe21 = $infospe1;
return $this;
}
public function setInfospe22(?bool $infospe1): self {
$this->infospe22 = $infospe1;
return $this;
}
public function setInfospe23(?bool $infospe1): self {
$this->infospe23 = $infospe1;
return $this;
}
public function setInfospe24(?bool $infospe1): self {
$this->infospe24 = $infospe1;
return $this;
}
public function setInfospe25(?bool $infospe1): self {
$this->infospe25 = $infospe1;
return $this;
}
public function setInfospe26(?bool $infospe1): self {
$this->infospe26 = $infospe1;
return $this;
}
public function setInfospe27(?bool $infospe1): self {
$this->infospe27 = $infospe1;
return $this;
}
public function setInfospe28(?bool $infospe1): self {
$this->infospe28 = $infospe1;
return $this;
}
public function setValueinfospe28(?float $valueinfospe28): self {
$this->valueinfospe28 = $valueinfospe28;
return $this;
}
public function setInfospe29(?bool $infospe1): self {
$this->infospe29 = $infospe1;
return $this;
}
public function setInfospe30(?bool $infospe1): self {
$this->infospe30 = $infospe1;
return $this;
}
public function setInfospe31(?bool $infospe1): self {
$this->infospe31 = $infospe1;
return $this;
}
public function setInfospe32(?bool $infospe1): self {
$this->infospe32 = $infospe1;
return $this;
}
public function setInfospe33(?bool $infospe33): self {
$this->infospe33 = $infospe33;
return $this;
}
public function setCouverturetelbonne(?bool $couverturetelbonne): self {
$this->couverturetelbonne = $couverturetelbonne;
return $this;
}
public function setZonecouverte(?string $zonecouverte): self {
$this->zonecouverte = $zonecouverte;
return $this;
}
public function setFicheobservations(?string $ficheobservations): self {
$this->ficheobservations = $ficheobservations;
return $this;
}
public function setCoutM3Defaut(?float $coutM3Defaut): self {
$this->coutM3Defaut = $coutM3Defaut;
return $this;
}
public function setTotalAchatsBois(?float $value): self {
$this->totalAchatsBois = $value;
$this->benefices = $this->totalVentes - $this->totalAchatsBois - $this->totalCoutsExploitation;
return $this;
}
public function setTotalCoutsExploitation(?float $value): self {
$this->totalCoutsExploitation = $value;
$this->benefices = $this->totalVentes - $this->totalAchatsBois - $this->totalCoutsExploitation;
return $this;
}
public function setTotalVentes(?float $value): self {
$this->totalVentes = $value;
$this->benefices = $this->totalVentes - $this->totalAchatsBois - $this->totalCoutsExploitation;
return $this;
}
public function setBenefices(?float $value): self {
$this->benefices = $value;
return $this;
}
public function setFinancialClose(?bool $value): self {
$this->financialClose = $value;
return $this;
}
/////////
// Add //
/////////
public function addChantierAutreClient(ChantierAutreClient $chantierAutreClient): self {
return $this->oneToManyAdd($chantierAutreClient);
}
public function addDocumentChantier(DocumentChantier $document): self {
return $this->oneToManyAdd($document);
}
public function addPhotoChantiers(DocumentChantier $document): self {
return $this->oneToManyAdd($document, 'photoChantiers', 'chantier2');
}
public function addDocumentChauffeurs(DocumentChantier $document): self {
return $this->oneToManyAdd($document, 'documentChauffeurs', 'chantier3');
}
public function addIntervention(Intervention $intervention): self {
return $this->oneToManyAdd($intervention);
}
public function addPrestation(Prestation $prestation): self {
return $this->oneToManyAdd($prestation);
}
public function addCubageLivraison(CubageLivraison $cubageLivraison): self {
return $this->oneToManyAdd($cubageLivraison);
}
public function addCubagePlateforme(CubagePlateforme $cubagePlateforme): self {
return $this->oneToManyAdd($cubagePlateforme);
}
public function addCubageChantier(CubageChantier $cubageChantier): self {
return $this->oneToManyAdd($cubageChantier);
}
public function addCubageChantierTest(CubageChantierTest $cubageChantier): self {
return $this->oneToManyAdd($cubageChantier);
}
public function addCubageChantierRestant(CubageChantierRestant $cubageChantierRestant): self {
return $this->oneToManyAdd($cubageChantierRestant);
}
public function addFraisChantier(FraisChantier $fraisChantier): self {
return $this->oneToManyAdd($fraisChantier);
}
////////////
// Remove //
////////////
public function removeChantierAutreClient(ChantierAutreClient $chantierAutreClient): self {
return $this->oneToManyRemove($chantierAutreClient);
}
public function removeDocumentChantier(DocumentChantier $document): self {
return $this->oneToManyRemove($document);
}
public function removePhotoChantiers(DocumentChantier $document): self {
return $this->oneToManyRemove($document);
}
public function removeDocumentChauffeurs(DocumentChantier $document): self {
return $this->oneToManyRemove($document);
}
public function removeIntervention(Intervention $intervention): self {
return $this->oneToManyRemove($intervention);
}
public function removePrestation(Prestation $prestation): self {
return $this->oneToManyRemove($prestation);
}
public function removeCubageLivraison(CubageLivraison $cubageLivraison): self {
return $this->oneToManyRemove($cubageLivraison);
}
public function removeCubagePlateforme(CubagePlateforme $cubagePlateforme): self {
return $this->oneToManyRemove($cubagePlateforme);
}
public function removeCubageChantier(CubageChantier $cubageChantier): self {
return $this->oneToManyRemove($cubageChantier);
}
public function removeCubageChantierRestant(CubageChantierRestant $cubageChantier): self {
return $this->oneToManyRemove($cubageChantier);
}
public function removeFraisChantier(FraisChantier $fraisChantier): self {
return $this->oneToManyRemove($fraisChantier);
}
}