Improve phpdocs of service
This commit is contained in:
parent
6c43ee8fd1
commit
69abbcaf4b
@ -33,10 +33,10 @@ class ParameterService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $name
|
* @param string $name The name of the parameter in the format <group>_<parameter>
|
||||||
* @param bool $parse
|
* @param bool $parse Whether to parse embedded %parameter%'s
|
||||||
*
|
*
|
||||||
* @return string
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function get($name, $parse = true)
|
public function get($name, $parse = true)
|
||||||
{
|
{
|
||||||
@ -67,8 +67,8 @@ class ParameterService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $name
|
* @param string $name The name of the parameter in the format <group>_<parameter>
|
||||||
* @param $value
|
* @param mixed $value
|
||||||
*/
|
*/
|
||||||
public function set($name, $value)
|
public function set($name, $value)
|
||||||
{
|
{
|
||||||
@ -103,6 +103,7 @@ class ParameterService
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add the group name in front of the parameter name
|
||||||
$value['name'] = sprintf('%s_%s', $groupName, $value['name']);
|
$value['name'] = sprintf('%s_%s', $groupName, $value['name']);
|
||||||
$value['type'] = $class;
|
$value['type'] = $class;
|
||||||
unset($value);
|
unset($value);
|
||||||
|
Loading…
Reference in New Issue
Block a user