You are here

public function HydratingIteratorInterface::setPrototype in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/Iterator/HydratingIteratorInterface.php \Zend\Hydrator\Iterator\HydratingIteratorInterface::setPrototype()

This sets the prototype to hydrate.

This prototype can be the name of the class or the object itself; iteration will clone the object.

Parameters

string|object $prototype:

1 method overrides HydratingIteratorInterface::setPrototype()
HydratingIteratorIterator::setPrototype in vendor/zendframework/zend-hydrator/src/Iterator/HydratingIteratorIterator.php
@inheritdoc

File

vendor/zendframework/zend-hydrator/src/Iterator/HydratingIteratorInterface.php, line 25

Class

HydratingIteratorInterface

Namespace

Zend\Hydrator\Iterator

Code

public function setPrototype($prototype);