<?php
/**
* Created by PhpStorm.
* User: sbrun
* Date: 2018-03-28
* Time: 4:25 PM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Pour info: les nouvelles adresses créées ont un tadl à 0, ça peut être utile pour les factures
*
*
* @ORM\Entity
* @ORM\Table(name="tclientsadl")
*/
class ClientsAdressesLivraison
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="tnom", type="string", length=255, nullable=true)
*/
protected $nom;
/**
* @ORM\Column(name="tadl", type="integer", nullable=true)
*/
protected $tadl;
/**
* @ORM\Column(name="rue", type="string", length=75, nullable=true)
*/
protected $rue;
/**
* @ORM\Column(name="tville", type="string", length=255, nullable=true)
*/
protected $ville;
/**
* @ORM\Column(name="tcodepostal", type="string", length=25, nullable=true)
*/
protected $codepostal;
/**
* @ORM\Column(name="ttelephone", type="string", length=70, nullable=true)
*/
protected $telephone;
/**
* @ORM\Column(name="tcommentaire", type="text", nullable=true)
*/
protected $commentaire;
/**
* Many ClientsAdressesLivraison has one Clients
*
* @ORM\ManyToOne(targetEntity="App\Entity\Clients", inversedBy="adressesLivraison", cascade={"persist"})
* @ORM\JoinColumn(name="idclient", referencedColumnName="id", nullable=true)
*/
protected $client;
/**
* has one Company
*
* @ORM\ManyToOne(targetEntity="App\Entity\Company")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
*/
protected $company;
/**
* @return mixed
*/
public function getCompany()
{
return $this->company;
}
/**
* @param Company $company
*/
public function setCompany(Company $company)
{
$this->company = $company;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
/**
* @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 getCodepostal()
{
return $this->codepostal;
}
/**
* @param mixed $codepostal
*/
public function setCodepostal($codepostal)
{
$this->codepostal = $codepostal;
}
/**
* @return mixed
*/
public function getTelephone()
{
return $this->telephone;
}
/**
* @param mixed $telephone
*/
public function setTelephone($telephone)
{
$this->telephone = $telephone;
}
/**
* @return mixed
*/
public function getCommentaire()
{
return $this->commentaire;
}
/**
* @param mixed $commentaire
*/
public function setCommentaire($commentaire)
{
$this->commentaire = $commentaire;
}
/**
* @return \App\Entity\Clients
*/
public function getClient()
{
return $this->client;
}
/**
* @param \App\Entity\Clients $client
* @return ClientsAdressesLivraison
*/
public function setClient(\App\Entity\Clients $client)
{
$this->client = $client;
return $this;
}
public function __toString()
{
return $this->getNom();
}
/**
* @return mixed
*/
public function getTadl()
{
return $this->tadl;
}
/**
* @param mixed $tadl
*/
public function setTadl($tadl)
{
$this->tadl = $tadl;
}
}