class Illuminate / Container / RewindableGenerator
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

RewindableGenerator

Implements

Properties

protected

$generator callable

The generator callback.

Default: null
protected

$count callable|int

The number of tagged services.

Default: null

Methods

public

__construct ( callable $generator , $count ) : void

Create a new generator instance.

Parameters

  • $generator callable
  • $count callable|int
public

getIterator ( ) : Traversable

Get an iterator from the generator.

public

count ( ) : int

Get the total number of tagged services.