deblan.tv/vendor/trinity/src/Trinity/Bundle/ContentManagerBundle/Configuration/BlockConfiguration.php

54 lines
877 B
PHP

<?php
namespace Trinity\Bundle\ContentManagerBundle\Configuration;
class BlockConfiguration
{
protected $name;
protected $type;
protected $options;
public function __construct($name, $type, $options = array())
{
$this->setName($name)
->setType($type)
->setOptions($options);
}
public function setName($name)
{
$this->name = $name;
return $this;
}
public function getName()
{
return $this->name;
}
public function setType($type)
{
$this->type = $type;
return $this;
}
public function getType()
{
return $this->type;
}
public function setOptions(array $options)
{
$this->options = $options;
return $this;
}
public function getOptions()
{
return $this->options;
}
}