Documentation

GeneratorAwareExtension extends Extension

An extension is the only way to add new functionality to Faker.

Tags
experimental

This interface is experimental and does not fall under our BC promise

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
Return values
Extension

Search results