AthensFramework/core

View on GitHub
src/orm-wrapper/CollectionWrapperInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Athens\Core\ORMWrapper;

use ArrayAccess;
use Iterator;
use Countable;

use Athens\Core\Choice\ChoiceInterface;

interface CollectionWrapperInterface extends ArrayAccess, Iterator, Countable
{

    /**
     * Save all elements of the collection.
     *
     * @return void
     */
    public function save();

    /**
     * Delete all elements of the collection.
     *
     * @return void
     */
    public function delete();

    /**
     * @return ChoiceInterface[]
     */
    public function getChoices();
}