• File: EventIterator.php
  • Full Path: /home/atelipy/www/wpmain/wp-content/plugins/duplicator/installer/dup-installer/classes/chunk/Iterators/Interfaces/EventIterator.php
  • File size: 631 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

/**
 * Standard: PSR-2
 *
 * @link http://www.php-fig.org/psr/psr-2 Full Documentation
 *
 * @package SC\DUPX\Chunk
 */

defined('ABSPATH') || defined('DUPXABSPATH') || exit;

/**
 * Event iterator
 */
interface EventIterator extends Iterator
{
    /**
     * The callback accept 3 params
     * $event , $index and $current values
     *
     * @param null | callable $callback
     */
    public function setEventCallback($callback = null);

    /**
     * Execute event
     *
     * @param mixed $event
     * @param mixed $key
     * @param mixed $current
     */
    public function doEvent($event, $key, $current);
}