Open Journal Systems  3.3.0
Guzzle\Service\Resource\MapResourceIteratorFactory Class Reference
Inheritance diagram for Guzzle\Service\Resource\MapResourceIteratorFactory:
Guzzle\Service\Resource\AbstractResourceIteratorFactory Guzzle\Service\Resource\ResourceIteratorFactoryInterface

Public Member Functions

 __construct (array $map)
 
 getClassName (CommandInterface $command)
 
- Public Member Functions inherited from Guzzle\Service\Resource\AbstractResourceIteratorFactory
 build (CommandInterface $command, array $options=array())
 
 canBuild (CommandInterface $command)
 

Protected Attributes

 $map
 

Additional Inherited Members

Detailed Description

Resource iterator factory used when explicitly mapping strings to iterator classes

Definition at line 10 of file MapResourceIteratorFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Guzzle\Service\Resource\MapResourceIteratorFactory::__construct ( array  $map)
Parameters
array$mapAssociative array mapping iterator names to class names

Definition at line 19 of file MapResourceIteratorFactory.php.

References Guzzle\Service\Resource\MapResourceIteratorFactory\$map.

Member Function Documentation

◆ getClassName()

Guzzle\Service\Resource\MapResourceIteratorFactory::getClassName ( CommandInterface  $command)

Get the name of the class to instantiate for the command

Parameters
CommandInterface$commandCommand that is associated with the iterator
Returns
string

Reimplemented from Guzzle\Service\Resource\AbstractResourceIteratorFactory.

Definition at line 24 of file MapResourceIteratorFactory.php.

References Guzzle\Service\Command\CommandInterface\getName().

Field Documentation

◆ $map

array Guzzle\Service\Resource\MapResourceIteratorFactory::$map
protected

Associative array mapping iterator names to class names

Definition at line 16 of file MapResourceIteratorFactory.php.

Referenced by Guzzle\Service\Resource\MapResourceIteratorFactory\__construct().


The documentation for this class was generated from the following file: