for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chadicus\Spl\DataStructures;
/**
* Defines the interface for Bad data structures.
*/
interface BagInterface extends CollectionInterface
{
* Adds a new element to the bag.
*
* @param mixed $element The element to add.
* @return Bag
public function add($element);
* Removes a random element from the bag.
* @return mixed
* @throws \RuntimeException Thrown if remove is called on an empty bag.
public function remove();
}