* @copyright Meritoo */ class Collection implements Countable, ArrayAccess, IteratorAggregate { use CollectionTrait; /** * Class constructor * * @param array $elements (optional) The elements of collection */ public function __construct(array $elements = []) { $this->elements = $elements; } }