src/Config/Iterator.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 *
 */

namespace Mvc5\Config;

trait Iterator
{
    /**
     * @var Model
     */
    protected Model $config;

    /**
     * @return mixed
     */
    function current() : mixed
    {
        return $this->config->current();
    }

    /**
     * @return mixed
     */
    function key() : mixed
    {
        return $this->config->key();
    }

    /**
     *
     */
    function next() : void
    {
        $this->config->next();
    }

    /**
     *
     */
    function rewind() : void
    {
        $this->config->rewind();
    }

    /**
     * @return bool
     */
    function valid() : bool
    {
        return $this->config->valid();
    }
}