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 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);