Improve phpdocs of service

This commit is contained in:
Tim 2020-07-27 01:23:13 +02:00
parent 6c43ee8fd1
commit 69abbcaf4b

View File

@ -33,10 +33,10 @@ class ParameterService
}
/**
* @param string $name
* @param bool $parse
* @param string $name The name of the parameter in the format <group>_<parameter>
* @param bool $parse Whether to parse embedded %parameter%'s
*
* @return string
* @return mixed
*/
public function get($name, $parse = true)
{
@ -67,8 +67,8 @@ class ParameterService
}
/**
* @param $name
* @param $value
* @param string $name The name of the parameter in the format <group>_<parameter>
* @param mixed $value
*/
public function set($name, $value)
{
@ -103,6 +103,7 @@ class ParameterService
break;
}
// Add the group name in front of the parameter name
$value['name'] = sprintf('%s_%s', $groupName, $value['name']);
$value['type'] = $class;
unset($value);