src/ContextCollection.php
public function each($cb) {
        foreach ($this->data as $context) {
            $context = new Context($context);

            if (false === $cb($context)) {
                break;
            }
        }

        return $this;
    }
public function each($cb) {
        foreach ($this->data as $context) {
            $context = new Context($context);

            if (false === $cb($context)) {
                break;
            }
        }

        return $this;
    }
public function each ( $ cb ) { foreach ( $ this -> data as $ context ) { $ context = new Context ( $ context ) ; if ( false === $ cb ( $ context ) ) { break ; } } return $ this ; }
Walk through the collection
@param  callable $cb
@return ContextCollection
Walk through the collection