src/Entity/ClientsAdressesLivraison.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: sbrun
  5.  * Date: 2018-03-28
  6.  * Time: 4:25 PM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * Pour info: les nouvelles adresses créées ont un tadl à 0, ça peut être utile pour les factures
  12.  *
  13.  *
  14.  * @ORM\Entity
  15.  * @ORM\Table(name="tclientsadl")
  16.  */
  17. class ClientsAdressesLivraison
  18. {
  19.     /**
  20.      * @ORM\Column(type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     protected $id;
  25.     /**
  26.      * @ORM\Column(name="tnom", type="string", length=255, nullable=true)
  27.      */
  28.     protected $nom;
  29.     /**
  30.      * @ORM\Column(name="tadl", type="integer", nullable=true)
  31.      */
  32.     protected $tadl;
  33.     /**
  34.      * @ORM\Column(name="rue", type="string", length=75, nullable=true)
  35.      */
  36.     protected $rue;
  37.     /**
  38.      * @ORM\Column(name="tville", type="string", length=255, nullable=true)
  39.      */
  40.     protected $ville;
  41.     /**
  42.      * @ORM\Column(name="tcodepostal", type="string", length=25, nullable=true)
  43.      */
  44.     protected $codepostal;
  45.     /**
  46.      * @ORM\Column(name="ttelephone", type="string", length=70, nullable=true)
  47.      */
  48.     protected $telephone;
  49.     /**
  50.      * @ORM\Column(name="tcommentaire", type="text", nullable=true)
  51.      */
  52.     protected $commentaire;
  53.     /**
  54.      * Many ClientsAdressesLivraison has one Clients
  55.      *
  56.      * @ORM\ManyToOne(targetEntity="App\Entity\Clients", inversedBy="adressesLivraison", cascade={"persist"})
  57.      * @ORM\JoinColumn(name="idclient", referencedColumnName="id", nullable=true)
  58.      */
  59.     protected $client;
  60.     /**
  61.      * has one Company
  62.      *
  63.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  64.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
  65.      */
  66.     protected $company;
  67.     /**
  68.      * @return mixed
  69.      */
  70.     public function getCompany()
  71.     {
  72.         return $this->company;
  73.     }
  74.     /**
  75.      * @param Company $company
  76.      */
  77.     public function setCompany(Company $company)
  78.     {
  79.         $this->company $company;
  80.     }
  81.     /**
  82.      * @return mixed
  83.      */
  84.     public function getId()
  85.     {
  86.         return $this->id;
  87.     }
  88.     /**
  89.      * @return mixed
  90.      */
  91.     public function getNom()
  92.     {
  93.         return $this->nom;
  94.     }
  95.     /**
  96.      * @param mixed $nom
  97.      */
  98.     public function setNom($nom)
  99.     {
  100.         $this->nom $nom;
  101.     }
  102.     /**
  103.      * @return mixed
  104.      */
  105.     public function getRue()
  106.     {
  107.         return $this->rue;
  108.     }
  109.     /**
  110.      * @param mixed $rue
  111.      */
  112.     public function setRue($rue)
  113.     {
  114.         $this->rue $rue;
  115.     }
  116.     /**
  117.      * @return mixed
  118.      */
  119.     public function getVille()
  120.     {
  121.         return $this->ville;
  122.     }
  123.     /**
  124.      * @param mixed $ville
  125.      */
  126.     public function setVille($ville)
  127.     {
  128.         $this->ville $ville;
  129.     }
  130.     /**
  131.      * @return mixed
  132.      */
  133.     public function getCodepostal()
  134.     {
  135.         return $this->codepostal;
  136.     }
  137.     /**
  138.      * @param mixed $codepostal
  139.      */
  140.     public function setCodepostal($codepostal)
  141.     {
  142.         $this->codepostal $codepostal;
  143.     }
  144.     /**
  145.      * @return mixed
  146.      */
  147.     public function getTelephone()
  148.     {
  149.         return $this->telephone;
  150.     }
  151.     /**
  152.      * @param mixed $telephone
  153.      */
  154.     public function setTelephone($telephone)
  155.     {
  156.         $this->telephone $telephone;
  157.     }
  158.     /**
  159.      * @return mixed
  160.      */
  161.     public function getCommentaire()
  162.     {
  163.         return $this->commentaire;
  164.     }
  165.     /**
  166.      * @param mixed $commentaire
  167.      */
  168.     public function setCommentaire($commentaire)
  169.     {
  170.         $this->commentaire $commentaire;
  171.     }
  172.     /**
  173.      * @return \App\Entity\Clients
  174.      */
  175.     public function getClient()
  176.     {
  177.         return $this->client;
  178.     }
  179.     /**
  180.      * @param \App\Entity\Clients $client
  181.      * @return ClientsAdressesLivraison
  182.      */
  183.     public function setClient(\App\Entity\Clients $client)
  184.     {
  185.         $this->client $client;
  186.         return $this;
  187.     }
  188.     public function __toString()
  189.     {
  190.         return $this->getNom();
  191.     }
  192.     /**
  193.      * @return mixed
  194.      */
  195.     public function getTadl()
  196.     {
  197.         return $this->tadl;
  198.     }
  199.     /**
  200.      * @param mixed $tadl
  201.      */
  202.     public function setTadl($tadl)
  203.     {
  204.         $this->tadl $tadl;
  205.     }
  206. }