serp-spider/core

View on GitHub
src/Core/Dom/DomNodeInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @license see LICENSE
 */

namespace Serps\Core\Dom;

interface DomNodeInterface
{

    public function hasClass($className);
    public function hasClasses(array $classNames);
    public function hasAnyClass(array $classNames);
    public function getAttribute($name);
    public function getTagName();
    public function getNodeValue();

    /**
     * @return DomNodeList
     */
    public function getChildren();

    /**
     * @return DomNodeInterface
     */
    public function getLastChild();
}