Added tests and fixed func name in PropertyBag

This commit is contained in:
Chris 2021-02-11 13:25:28 +01:00
parent 3899d191a4
commit 88b6247e63

View File

@ -88,7 +88,7 @@ class PropertyBag
* @param mixed Default value * @param mixed Default value
* @return mixed * @return mixed
*/ */
public function value(string $prop, $default=null) public function valueOf(string $prop, $default=null)
{ {
return array_key_exists($prop, $this->props) return array_key_exists($prop, $this->props)
? $this->props[$prop] ? $this->props[$prop]