lib/PHPPdf/Core/Node/Node.php
public function getAttribute($name)
    {
        $this->throwExceptionIfAttributeDosntExist($name);

        $class = get_class($this);
        if(isset(self::$attributeGetters[$class][$name]))
        {
            $methodName = self::$attributeGetters[$class][$name];
            return $this->$methodName();
        }
        else
        {
            return $this->getAttributeDirectly($name);
        }        
    }
public function getAttribute($name)
    {
        $this->throwExceptionIfAttributeDosntExist($name);

        $class = get_class($this);
        if(isset(self::$attributeGetters[$class][$name]))
        {
            $methodName = self::$attributeGetters[$class][$name];
            return $this->$methodName();
        }
        else
        {
            return $this->getAttributeDirectly($name);
        }        
    }
public function getAttribute ( $ name ) { $ this -> throwExceptionIfAttributeDosntExist ( $ name ) ; $ class = get_class ( $ this ) ; if ( isset ( self :: $ attributeGetters [ $ class ] [ $ name ] ) ) { $ methodName = self :: $ attributeGetters [ $ class ] [ $ name ] ; return $ this -> $ methodName ( ) ; } else { return $ this -> getAttributeDirectly ( $ name ) ; } }
Returns attribute value

@param string $name Name of attribute

@throws InvalidAttributeException If attribute isn't supported by this node
@return mixed Value of attribute
Returns attribute value