public function get($key) { if (!$this->containsKey($key)) { throw new \InvalidArgumentException(sprintf('This node doesn\'t contain the "%s" property'), $key); } return $this->properties[$key]; }