Gets an attribute.
string The attribute name:
mixed The attribute value
public function getAttribute($name) {
if (!array_key_exists($name, $this->attributes)) {
throw new LogicException(sprintf('Attribute "%s" does not exist for Node "%s".', $name, get_class($this)));
}
return $this->attributes[$name];
}