src/Entity/Fournisseurs.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: sbrun
  5.  * Date: 2018-03-22
  6.  * Time: 10:47 AM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="tfournisseurs")
  13.  * @ORM\Entity(repositoryClass="App\Repository\FournisseursRepository")
  14.  */
  15. class Fournisseurs
  16. {
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     /**
  24.      * @ORM\Column(name="fnom", type="string", length=255, nullable=true)
  25.      */
  26.     protected $nom;
  27.     /**
  28.      * @ORM\Column(name="nom_fournisseur_ftp", type="string", length=255, nullable=true)
  29.      */
  30.     protected $nomFournisseurFtp;
  31.     /**
  32.      * @ORM\Column(name="fadresserue", type="string", length=255, nullable=true)
  33.      */
  34.     protected $rue;
  35.     /**
  36.      * @ORM\Column(name="fadresseville", type="string", length=100, nullable=true)
  37.      */
  38.     protected $ville;
  39.     /**
  40.      * @ORM\Column(name="fadresseprovince", type="string", length=50, nullable=true)
  41.      */
  42.     protected $province;
  43.     /**
  44.      * @ORM\Column(name="fadressecp", type="string", length=25, nullable=true)
  45.      */
  46.     protected $cp;
  47.     /**
  48.      * @ORM\Column(name="ftelephone", type="string", length=100, nullable=true)
  49.      */
  50.     protected $telephone;
  51.     /**
  52.      * @ORM\Column(name="ftelephone2", type="string", length=100, nullable=true)
  53.      */
  54.     protected $telephone2;
  55.     /**
  56.      * @ORM\Column(name="ffax", type="string", length=100, nullable=true)
  57.      */
  58.     protected $fax;
  59.     /**
  60.      * @ORM\Column(name="femail", type="string", length=75, nullable=true)
  61.      */
  62.     protected $email;
  63.     /**
  64.      * @ORM\Column(name="fgardernotes", type="boolean", nullable=true)
  65.      */
  66.     protected $garderNotes false;
  67.     /**
  68.      * @ORM\Column(name="fcontact", type="string", length=255, nullable=true)
  69.      */
  70.     protected $contact;
  71.     /**
  72.      * @ORM\Column(name="fdureeoffice", type="integer")
  73.      */
  74.     protected $dureeOffice 6;
  75.     /**
  76.      * @ORM\Column(name="fcommentaire", type="text", nullable=true)
  77.      */
  78.     protected $commentaire;
  79.     /**
  80.      * @ORM\Column(name="flivraison", type="integer")
  81.      */
  82.     protected $livraison 0;
  83.     /**
  84.      * @ORM\Column(name="fbienservices", type="boolean")
  85.      */
  86.     protected $bienServices false;
  87.     /**
  88.      * @ORM\Column(name="fcommandeminimale", type="float")
  89.      */
  90.     protected $commandeMinimale 0;
  91.     /**
  92.      * @ORM\OneToMany(targetEntity="App\Entity\Commande", mappedBy="fournisseur")
  93.      */
  94.     protected $commandes;
  95.     /**
  96.      * @ORM\Column(name="factive", type="boolean")
  97.      */
  98.     protected $active true;
  99.     /**
  100.      * Many Fournisseurs has one Pays
  101.      *
  102.      * @ORM\ManyToOne(targetEntity="App\Entity\Pays", cascade={"persist"})
  103.      *  --> inversedBy="pays"
  104.      * @ORM\JoinColumn(nullable=true)
  105.      */
  106.     protected $pays;
  107.     /**
  108.      * @ORM\OneToMany(targetEntity="App\Entity\Editeurs", mappedBy="fournisseur")
  109.      */
  110.     protected $editeurs;
  111.     /**
  112.      * @ORM\OneToMany(targetEntity="App\Entity\FournisseursCompany", mappedBy="fournisseur")
  113.      */
  114.     protected $fournisseursCompanys;
  115.     /**
  116.      * @param mixed $rue
  117.      */
  118.     public function setId($id)
  119.     {
  120.         $this->id $id;
  121.     }
  122.     /**
  123.      * @return mixed
  124.      */
  125.     public function getId()
  126.     {
  127.         return $this->id;
  128.     }
  129.     /**
  130.      * @return mixed
  131.      */
  132.     public function getRue()
  133.     {
  134.         return $this->rue;
  135.     }
  136.     /**
  137.      * @param mixed $rue
  138.      */
  139.     public function setRue($rue)
  140.     {
  141.         $this->rue $rue;
  142.     }
  143.     /**
  144.      * @return mixed
  145.      */
  146.     public function getVille()
  147.     {
  148.         return $this->ville;
  149.     }
  150.     /**
  151.      * @param mixed $ville
  152.      */
  153.     public function setVille($ville)
  154.     {
  155.         $this->ville $ville;
  156.     }
  157.     /**
  158.      * @return mixed
  159.      */
  160.     public function getProvince()
  161.     {
  162.         return $this->province;
  163.     }
  164.     /**
  165.      * @param mixed $province
  166.      */
  167.     public function setProvince($province)
  168.     {
  169.         $this->province $province;
  170.     }
  171.     /**
  172.      * @return mixed
  173.      */
  174.     public function getCp()
  175.     {
  176.         return $this->cp;
  177.     }
  178.     /**
  179.      * @param mixed $cp
  180.      */
  181.     public function setCp($cp)
  182.     {
  183.         $this->cp $cp;
  184.     }
  185.     /**
  186.      * @return mixed
  187.      */
  188.     public function getTelephone()
  189.     {
  190.         return $this->telephone;
  191.     }
  192.     /**
  193.      * @param mixed $telephone
  194.      */
  195.     public function setTelephone($telephone)
  196.     {
  197.         $this->telephone $telephone;
  198.     }
  199.     /**
  200.      * @return mixed
  201.      */
  202.     public function getTelephone2()
  203.     {
  204.         return $this->telephone2;
  205.     }
  206.     /**
  207.      * @param mixed $telephone2
  208.      */
  209.     public function setTelephone2($telephone2)
  210.     {
  211.         $this->telephone2 $telephone2;
  212.     }
  213.     /**
  214.      * @return mixed
  215.      */
  216.     public function getFax()
  217.     {
  218.         return $this->fax;
  219.     }
  220.     /**
  221.      * @param mixed $fax
  222.      */
  223.     public function setFax($fax)
  224.     {
  225.         $this->fax $fax;
  226.     }
  227.     /**
  228.      * @return mixed
  229.      */
  230.     public function getEmail()
  231.     {
  232.         return $this->email;
  233.     }
  234.     /**
  235.      * @param mixed $email
  236.      */
  237.     public function setEmail($email)
  238.     {
  239.         $this->email $email;
  240.     }
  241.     /**
  242.      * @return mixed
  243.      */
  244.     public function getGarderNotes()
  245.     {
  246.         return $this->garderNotes;
  247.     }
  248.     /**
  249.      * @return mixed
  250.      */
  251.     public function isGarderNotes()
  252.     {
  253.         return $this->getGarderNotes();
  254.     }
  255.     /**
  256.      * @param mixed $garderNotes
  257.      */
  258.     public function setGarderNotes($garderNotes)
  259.     {
  260.         $this->garderNotes $garderNotes;
  261.     }
  262.     /**
  263.      * @return mixed
  264.      */
  265.     public function getContact()
  266.     {
  267.         return $this->contact;
  268.     }
  269.     /**
  270.      * @param mixed $contact
  271.      */
  272.     public function setContact($contact)
  273.     {
  274.         $this->contact $contact;
  275.     }
  276.     /**
  277.      * @return mixed
  278.      */
  279.     public function getDureeOffice()
  280.     {
  281.         return $this->dureeOffice;
  282.     }
  283.     /**
  284.      * @param mixed $dureeOffice
  285.      */
  286.     public function setDureeOffice($dureeOffice)
  287.     {
  288.         $this->dureeOffice $dureeOffice;
  289.     }
  290.     /**
  291.      * @return mixed
  292.      */
  293.     public function getCommentaire()
  294.     {
  295.         return $this->commentaire;
  296.     }
  297.     /**
  298.      * @param mixed $commentaire
  299.      */
  300.     public function setCommentaire($commentaire)
  301.     {
  302.         $this->commentaire $commentaire;
  303.     }
  304.     /**
  305.      * @return mixed
  306.      */
  307.     public function getLivraison()
  308.     {
  309.         return $this->livraison;
  310.     }
  311.     /**
  312.      * @param mixed $livraison
  313.      */
  314.     public function setLivraison($livraison)
  315.     {
  316.         $this->livraison $livraison;
  317.     }
  318.     /**
  319.      * @return mixed
  320.      */
  321.     public function getBienServices()
  322.     {
  323.         return $this->bienServices;
  324.     }
  325.     /**
  326.      * @return mixed
  327.      */
  328.     public function isBienServices()
  329.     {
  330.         return $this->getBienServices();
  331.     }
  332.     /**
  333.      * @param mixed $bienServices
  334.      */
  335.     public function setBienServices($bienServices)
  336.     {
  337.         $this->bienServices $bienServices;
  338.     }
  339.     /**
  340.      * @return mixed
  341.      */
  342.     public function getCommandeMinimale()
  343.     {
  344.         return $this->commandeMinimale;
  345.     }
  346.     /**
  347.      * @param mixed $commandeMinimale
  348.      */
  349.     public function setCommandeMinimale($commandeMinimale)
  350.     {
  351.         $this->commandeMinimale $commandeMinimale;
  352.     }
  353.     /**
  354.      * @return mixed
  355.      */
  356.     public function getNom()
  357.     {
  358.         return $this->nom;
  359.     }
  360.     /**
  361.      * @param mixed $nom
  362.      */
  363.     public function setNom($nom)
  364.     {
  365.         $this->nom $nom;
  366.     }
  367.     /**
  368.      * @return \App\Entity\Pays
  369.      */
  370.     public function getPays()
  371.     {
  372.         return $this->pays;
  373.     }
  374.     /**
  375.      * @param Pays $pays
  376.      * @return Fournisseurs
  377.      */
  378.     public function setPays(Pays $pays)
  379.     {
  380.         $this->pays $pays;
  381.         return $this;
  382.     }
  383.     /**
  384.      * @return mixed
  385.      */
  386.     public function getActive()
  387.     {
  388.         return $this->active;
  389.     }
  390.     /**
  391.      * @param mixed $active
  392.      */
  393.     public function setActive($active)
  394.     {
  395.         $this->active $active;
  396.     }
  397.     /**
  398.      * @return bool
  399.      */
  400.     public function isActive()
  401.     {
  402.         return $this->getActive()?true:false;
  403.     }
  404.     /**
  405.      * @return mixed
  406.      */
  407.     public function getEditeurs()
  408.     {
  409.         return $this->editeurs;
  410.     }
  411.     /**
  412.      * @param mixed $editeurs
  413.      */
  414.     public function setEditeurs($editeurs)
  415.     {
  416.         $this->editeurs $editeurs;
  417.     }
  418.     /**
  419.      * @return mixed
  420.      */
  421.     public function getNomFournisseurFtp()
  422.     {
  423.         return $this->nomFournisseurFtp;
  424.     }
  425.     /**
  426.      * @param mixed $nomFournisseurFtp
  427.      * @return Fournisseurs
  428.      */
  429.     public function setNomFournisseurFtp($nomFournisseurFtp)
  430.     {
  431.         $this->nomFournisseurFtp $nomFournisseurFtp;
  432.         return $this;
  433.     }
  434.     /**
  435.      * @return mixed
  436.      */
  437.     public function getFournisseursCompanys()
  438.     {
  439.         return $this->fournisseursCompanys;
  440.     }
  441.     public function __toString()
  442.     {
  443.         return (string)$this->getId();
  444.     }
  445. }