herroffizier/limcache

View on GitHub
src/storage/ArrayInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Limcache
 *
 * This file contains array interface.
 *
 * @author  Martin Stolz <herr.offizier@gmail.com>
 */

namespace Limcache\storage;

interface ArrayInterface extends \ArrayAccess, \Countable
{
    /**
     * Get last inserted offset.
     *
     * @return mixed
     */
    public function lastInsertedOffset();

    /**
     * Get first item in array.
     *
     * @return mixed
     */
    public function first();

    /**
     * Get last item in array.
     *
     * @return mixed
     */
    public function last();
}