pQuery\DomNode::attr PHP Метод

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

public attr ( $name, $value = null )
    public function attr($name, $value = null)
    {
        if ($value === null) {
            return $this->getAttribute($name);
        }
        $this->setAttribute($name, $value);
        return $this;
    }
DomNode