src/AppBundle/Entity/TipoBoton.php line 16
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Cocur\Slugify\Slugify;
/**
* TipoBoton
*
* @ORM\Table(name="tipo_boton")
* @ORM\Entity(repositoryClass="AppBundle\Repository\TipoBotonRepository")
* @ORM\HasLifecycleCallbacks()
*/
class TipoBoton
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nombre", type="string", length=255)
*/
protected $nombre;
/**
* @ORM\OneToMany(targetEntity="OrdenTipoBoton", mappedBy="tipoBoton")
*/
protected $caracteristicas;
public function __construct()
{
$this->caracteristicas = new ArrayCollection();
}
/**
* @param int $id
*
* @return void
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return int
*/
public function getID(){
return $this->id;
}
/**
* @param string $nombre
*
* @return void
*/
public function setNombre($nombre)
{
$this->nombre = $nombre;
return $this;
}
/**
* @return string
*/
public function getNombre()
{
return $this->nombre;
}
/**
* Get calidades.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCaracteristicas()
{
return $this->caracteristicas;
}
}