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];
    }
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];
    }
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 ] ; }
Gets an attribute.

@param  string The attribute name

@return mixed The attribute value
Gets an attribute .