56 lines
1.0 KiB
PHP
56 lines
1.0 KiB
PHP
<?php
|
|
namespace App\Handlers\Registrators\Items;
|
|
|
|
class SettingExtension
|
|
{
|
|
/**
|
|
* @var string human readable ID of settings section (used e.g. as ID parameter in html)
|
|
*/
|
|
protected $id;
|
|
/**
|
|
* @var string translations string used for describing briefly settings section
|
|
*/
|
|
protected $name;
|
|
/**
|
|
* @var string view used for rendering given settings part
|
|
*/
|
|
protected $view;
|
|
|
|
/**
|
|
* SettingExtension constructor.
|
|
*
|
|
* @param string $id
|
|
* @param string $name
|
|
* @param string $view
|
|
*/
|
|
public function __construct($id, $name, $view)
|
|
{
|
|
$this->id = $id;
|
|
$this->name = $name;
|
|
$this->view = $view;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getView()
|
|
{
|
|
return $this->view;
|
|
}
|
|
} |