You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
3.0 KiB
184 lines
3.0 KiB
<?php
|
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* EntityBlock
|
|
*
|
|
* @Table(name="block")
|
|
* @Entity
|
|
*/
|
|
class EntityBlock
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
|
|
* @Id
|
|
* @GeneratedValue(strategy="IDENTITY")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="name", type="string", length=255, precision=0, scale=0, nullable=true, unique=false)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="description", type="text", precision=0, scale=0, nullable=true, unique=false)
|
|
*/
|
|
private $description;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="path", type="string", length=255, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $path;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @Column(name="controller", type="string", length=100, precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $controller;
|
|
|
|
/**
|
|
* @var boolean
|
|
*
|
|
* @Column(name="active", type="boolean", precision=0, scale=0, nullable=false, unique=false)
|
|
*/
|
|
private $active;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $name
|
|
* @return EntityBlock
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set description
|
|
*
|
|
* @param string $description
|
|
* @return EntityBlock
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Set path
|
|
*
|
|
* @param string $path
|
|
* @return EntityBlock
|
|
*/
|
|
public function setPath($path)
|
|
{
|
|
$this->path = $path;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get path
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPath()
|
|
{
|
|
return $this->path;
|
|
}
|
|
|
|
/**
|
|
* Set controller
|
|
*
|
|
* @param string $controller
|
|
* @return EntityBlock
|
|
*/
|
|
public function setController($controller)
|
|
{
|
|
$this->controller = $controller;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get controller
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getController()
|
|
{
|
|
return $this->controller;
|
|
}
|
|
|
|
/**
|
|
* Set active
|
|
*
|
|
* @param boolean $active
|
|
* @return EntityBlock
|
|
*/
|
|
public function setActive($active)
|
|
{
|
|
$this->active = $active;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get active
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getActive()
|
|
{
|
|
return $this->active;
|
|
}
|
|
}
|
|
|