src/Entity/Imprimante.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: fmartinbrossat
  5.  * Date: 2018-09-12
  6.  * Time: 14:07
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="imprimante")
  13.  */
  14. class Imprimante
  15. {
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     protected $id;
  22.     /**
  23.      * @ORM\Column(name="identifier", type="string", length=75)
  24.      */
  25.     protected $identifier;
  26.     /**
  27.     * @ORM\Column(name="name", type="string", length=75, nullable=false)
  28.     */
  29.     protected $name;
  30.     /**
  31.     * @ORM\Column(name="description", type="string", length=160, nullable=true)
  32.     */
  33.     protected $description;
  34.     /**
  35.      * Many imprimantes has one type
  36.      *
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\ImprimanteType", inversedBy="imprimantes")
  38.      * @ORM\JoinColumn(name="type", referencedColumnName="id", nullable=true)
  39.      */
  40.     protected $type;
  41.     /**
  42.      * One Imprimante has Many ImprimantesUsers.
  43.      * @ORM\OneToMany(targetEntity="ImprimantesUsers", mappedBy="imprimante")
  44.      */
  45.     protected $imprimantesUsers;
  46.     /**
  47.      * @return mixed
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * @param mixed $id
  55.      */
  56.     public function setId($id)
  57.     {
  58.         $this->id $id;
  59.     }
  60.     /**
  61.      * @return mixed
  62.      */
  63.     public function getIdentifier()
  64.     {
  65.         return $this->identifier;
  66.     }
  67.     /**
  68.      * @param mixed $identifier
  69.      */
  70.     public function setIdentifier($identifier)
  71.     {
  72.         $this->identifier $identifier;
  73.     }
  74.     /**
  75.      * @return mixed
  76.      */
  77.     public function getName()
  78.     {
  79.         return $this->name;
  80.     }
  81.     /**
  82.      * @param mixed $name
  83.      */
  84.     public function setName($name)
  85.     {
  86.         $this->name $name;
  87.     }
  88.     /**
  89.      * @return mixed
  90.      */
  91.     public function getDescription()
  92.     {
  93.         return $this->description;
  94.     }
  95.     /**
  96.      * @param mixed $description
  97.      */
  98.     public function setDescription($description)
  99.     {
  100.         $this->description $description;
  101.     }
  102.     /**
  103.      * @return mixed
  104.      */
  105.     public function getType()
  106.     {
  107.         return $this->type;
  108.     }
  109.     /**
  110.      * @param mixed $type
  111.      */
  112.     public function setType($type)
  113.     {
  114.         $this->type $type;
  115.     }
  116.     /**
  117.      * @return mixed
  118.      */
  119.     public function getImprimantesUsers()
  120.     {
  121.         return $this->imprimantesUsers;
  122.     }
  123.     /**
  124.      * @param mixed $imprimantesUsers
  125.      */
  126.     public function setImprimantesUsers($imprimantesUsers)
  127.     {
  128.         $this->imprimantesUsers $imprimantesUsers;
  129.     }
  130. }