@@ 90-96 (lines=7) @@ | ||
87 | * @param string $name |
|
88 | * @throws ParameterNotFoundException |
|
89 | */ |
|
90 | public function remove(string $name) |
|
91 | { |
|
92 | if (!$this->has($name)) { |
|
93 | throw new ParameterNotFoundException(sprintf('Parameter with name "%s" not found', $name)); |
|
94 | } |
|
95 | unset($this->parameterCollection[$name]); |
|
96 | } |
|
97 | ||
98 | /** |
|
99 | * Get parameter |
|
@@ 105-111 (lines=7) @@ | ||
102 | * @return ReferenceInterface |
|
103 | * @throws ParameterNotFoundException |
|
104 | */ |
|
105 | public function get(string $name): ReferenceInterface |
|
106 | { |
|
107 | if (!$this->has($name)) { |
|
108 | throw new ParameterNotFoundException(sprintf('Parameter with name "%s" not found', $name)); |
|
109 | } |
|
110 | return $this->parameterCollection[$name]; |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * Get parameter collection |