<?php
/**
* Created by PhpStorm.
* User: fmartinbrossat
* Date: 2018-09-12
* Time: 14:07
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="imprimante")
*/
class Imprimante
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="identifier", type="string", length=75)
*/
protected $identifier;
/**
* @ORM\Column(name="name", type="string", length=75, nullable=false)
*/
protected $name;
/**
* @ORM\Column(name="description", type="string", length=160, nullable=true)
*/
protected $description;
/**
* Many imprimantes has one type
*
* @ORM\ManyToOne(targetEntity="App\Entity\ImprimanteType", inversedBy="imprimantes")
* @ORM\JoinColumn(name="type", referencedColumnName="id", nullable=true)
*/
protected $type;
/**
* One Imprimante has Many ImprimantesUsers.
* @ORM\OneToMany(targetEntity="ImprimantesUsers", mappedBy="imprimante")
*/
protected $imprimantesUsers;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getIdentifier()
{
return $this->identifier;
}
/**
* @param mixed $identifier
*/
public function setIdentifier($identifier)
{
$this->identifier = $identifier;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return mixed
*/
public function getDescription()
{
return $this->description;
}
/**
* @param mixed $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return mixed
*/
public function getType()
{
return $this->type;
}
/**
* @param mixed $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return mixed
*/
public function getImprimantesUsers()
{
return $this->imprimantesUsers;
}
/**
* @param mixed $imprimantesUsers
*/
public function setImprimantesUsers($imprimantesUsers)
{
$this->imprimantesUsers = $imprimantesUsers;
}
}