<?php
/**
* Created by PhpStorm.
* User: sbrun
* Date: 2018-03-22
* Time: 10:47 AM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="tfournisseurs")
* @ORM\Entity(repositoryClass="App\Repository\FournisseursRepository")
*/
class Fournisseurs
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="fnom", type="string", length=255, nullable=true)
*/
protected $nom;
/**
* @ORM\Column(name="nom_fournisseur_ftp", type="string", length=255, nullable=true)
*/
protected $nomFournisseurFtp;
/**
* @ORM\Column(name="fadresserue", type="string", length=255, nullable=true)
*/
protected $rue;
/**
* @ORM\Column(name="fadresseville", type="string", length=100, nullable=true)
*/
protected $ville;
/**
* @ORM\Column(name="fadresseprovince", type="string", length=50, nullable=true)
*/
protected $province;
/**
* @ORM\Column(name="fadressecp", type="string", length=25, nullable=true)
*/
protected $cp;
/**
* @ORM\Column(name="ftelephone", type="string", length=100, nullable=true)
*/
protected $telephone;
/**
* @ORM\Column(name="ftelephone2", type="string", length=100, nullable=true)
*/
protected $telephone2;
/**
* @ORM\Column(name="ffax", type="string", length=100, nullable=true)
*/
protected $fax;
/**
* @ORM\Column(name="femail", type="string", length=75, nullable=true)
*/
protected $email;
/**
* @ORM\Column(name="fgardernotes", type="boolean", nullable=true)
*/
protected $garderNotes = false;
/**
* @ORM\Column(name="fcontact", type="string", length=255, nullable=true)
*/
protected $contact;
/**
* @ORM\Column(name="fdureeoffice", type="integer")
*/
protected $dureeOffice = 6;
/**
* @ORM\Column(name="fcommentaire", type="text", nullable=true)
*/
protected $commentaire;
/**
* @ORM\Column(name="flivraison", type="integer")
*/
protected $livraison = 0;
/**
* @ORM\Column(name="fbienservices", type="boolean")
*/
protected $bienServices = false;
/**
* @ORM\Column(name="fcommandeminimale", type="float")
*/
protected $commandeMinimale = 0;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Commande", mappedBy="fournisseur")
*/
protected $commandes;
/**
* @ORM\Column(name="factive", type="boolean")
*/
protected $active = true;
/**
* Many Fournisseurs has one Pays
*
* @ORM\ManyToOne(targetEntity="App\Entity\Pays", cascade={"persist"})
* --> inversedBy="pays"
* @ORM\JoinColumn(nullable=true)
*/
protected $pays;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Editeurs", mappedBy="fournisseur")
*/
protected $editeurs;
/**
* @ORM\OneToMany(targetEntity="App\Entity\FournisseursCompany", mappedBy="fournisseur")
*/
protected $fournisseursCompanys;
/**
* @param mixed $rue
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getRue()
{
return $this->rue;
}
/**
* @param mixed $rue
*/
public function setRue($rue)
{
$this->rue = $rue;
}
/**
* @return mixed
*/
public function getVille()
{
return $this->ville;
}
/**
* @param mixed $ville
*/
public function setVille($ville)
{
$this->ville = $ville;
}
/**
* @return mixed
*/
public function getProvince()
{
return $this->province;
}
/**
* @param mixed $province
*/
public function setProvince($province)
{
$this->province = $province;
}
/**
* @return mixed
*/
public function getCp()
{
return $this->cp;
}
/**
* @param mixed $cp
*/
public function setCp($cp)
{
$this->cp = $cp;
}
/**
* @return mixed
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* @param mixed $telephone
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
}
/**
* @return mixed
*/
public function getTelephone2()
{
return $this->telephone2;
}
/**
* @param mixed $telephone2
*/
public function setTelephone2($telephone2)
{
$this->telephone2 = $telephone2;
}
/**
* @return mixed
*/
public function getFax()
{
return $this->fax;
}
/**
* @param mixed $fax
*/
public function setFax($fax)
{
$this->fax = $fax;
}
/**
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* @param mixed $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return mixed
*/
public function getGarderNotes()
{
return $this->garderNotes;
}
/**
* @return mixed
*/
public function isGarderNotes()
{
return $this->getGarderNotes();
}
/**
* @param mixed $garderNotes
*/
public function setGarderNotes($garderNotes)
{
$this->garderNotes = $garderNotes;
}
/**
* @return mixed
*/
public function getContact()
{
return $this->contact;
}
/**
* @param mixed $contact
*/
public function setContact($contact)
{
$this->contact = $contact;
}
/**
* @return mixed
*/
public function getDureeOffice()
{
return $this->dureeOffice;
}
/**
* @param mixed $dureeOffice
*/
public function setDureeOffice($dureeOffice)
{
$this->dureeOffice = $dureeOffice;
}
/**
* @return mixed
*/
public function getCommentaire()
{
return $this->commentaire;
}
/**
* @param mixed $commentaire
*/
public function setCommentaire($commentaire)
{
$this->commentaire = $commentaire;
}
/**
* @return mixed
*/
public function getLivraison()
{
return $this->livraison;
}
/**
* @param mixed $livraison
*/
public function setLivraison($livraison)
{
$this->livraison = $livraison;
}
/**
* @return mixed
*/
public function getBienServices()
{
return $this->bienServices;
}
/**
* @return mixed
*/
public function isBienServices()
{
return $this->getBienServices();
}
/**
* @param mixed $bienServices
*/
public function setBienServices($bienServices)
{
$this->bienServices = $bienServices;
}
/**
* @return mixed
*/
public function getCommandeMinimale()
{
return $this->commandeMinimale;
}
/**
* @param mixed $commandeMinimale
*/
public function setCommandeMinimale($commandeMinimale)
{
$this->commandeMinimale = $commandeMinimale;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
/**
* @return \App\Entity\Pays
*/
public function getPays()
{
return $this->pays;
}
/**
* @param Pays $pays
* @return Fournisseurs
*/
public function setPays(Pays $pays)
{
$this->pays = $pays;
return $this;
}
/**
* @return mixed
*/
public function getActive()
{
return $this->active;
}
/**
* @param mixed $active
*/
public function setActive($active)
{
$this->active = $active;
}
/**
* @return bool
*/
public function isActive()
{
return $this->getActive()?true:false;
}
/**
* @return mixed
*/
public function getEditeurs()
{
return $this->editeurs;
}
/**
* @param mixed $editeurs
*/
public function setEditeurs($editeurs)
{
$this->editeurs = $editeurs;
}
/**
* @return mixed
*/
public function getNomFournisseurFtp()
{
return $this->nomFournisseurFtp;
}
/**
* @param mixed $nomFournisseurFtp
* @return Fournisseurs
*/
public function setNomFournisseurFtp($nomFournisseurFtp)
{
$this->nomFournisseurFtp = $nomFournisseurFtp;
return $this;
}
/**
* @return mixed
*/
public function getFournisseursCompanys()
{
return $this->fournisseursCompanys;
}
public function __toString()
{
return (string)$this->getId();
}
}