public function set($name, $value) { if (!array_key_exists($name, $this->prop_types)) { throw new \OutOfBoundsException(sprintf('No "%s" property', $name)); } $this->properties[$name] = $value; }