GeneratorAwareExtension
extends
Extension
in
An extension is the only way to add new functionality to Faker.
Tags
Table of Contents
- withGenerator() : Extension
- This method MUST be implemented in such a way as to retain the immutability of the extension, and MUST return an instance that has the new Generator.
Methods
withGenerator()
This method MUST be implemented in such a way as to retain the immutability of the extension, and MUST return an instance that has the new Generator.
public
withGenerator(Generator $generator) : Extension
Parameters
- $generator : Generator