PhpParser\NodeAbstract::getAttribute PHP Метод

getAttribute() публичный Метод

public getAttribute ( $key, $default = null )
    public function &getAttribute($key, $default = null)
    {
        if (!array_key_exists($key, $this->attributes)) {
            return $default;
        } else {
            return $this->attributes[$key];
        }
    }