class Illuminate / Container / RewindableGenerator
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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 ( ) : mixed

Get an iterator from the generator.

public

count ( ) : int

Get the total number of tagged services.