<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Hook
*
* @ORM\Table(name="hooks")
* @ORM\Entity
*/
class Hook {
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="key", type="string", length=50)
*/
private $key;
/**
* @var string
*
* @ORM\Column(name="template", type="string", length=255)
*/
private $template;
/**
* @var integer
*
* @ORM\Column(name="width", type="integer", nullable=true)
*/
private $width;
/**
* @var integer
*
* @ORM\Column(name="height", type="integer", nullable=true)
*/
private $height;
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set title
*
* @param string $title
* @return Hook
*/
public function setTitle($title) {
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle() {
return $this->title;
}
/**
* @return the $template
*/
public function getTemplate() {
return $this->template;
}
/**
* @param string $template
*/
public function setTemplate($template) {
$this->template = $template;
}
/**
* @return the $key
*/
public function getKey() {
return $this->key;
}
/**
* @param string $key
*/
public function setKey($key) {
$this->key = $key;
}
/**
* @return the $width
*/
public function getWidth() {
return $this->width;
}
/**
* @return the $height
*/
public function getHeight() {
return $this->height;
}
/**
* @param number $width
*/
public function setWidth($width) {
$this->width = $width;
}
/**
* @param number $height
*/
public function setHeight($height) {
$this->height = $height;
}
}