serp-spider/core

View on GitHub
src/Core/Serp/ResultDataInterface.php

Summary

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

namespace Serps\Core\Serp;

interface ResultDataInterface
{


    /**
     * Get the type of the element
     * @return mixed
     */
    public function getTypes();

    /**
     * Check if the element has one of the given type
     * @param array ...$type
     * @return mixed
     */
    public function is($types);

    public function getDataValue($name);

    public function getData();

    /**
     * Shortcut for getDataValue()
     */
    public function __get($name);
}