PHP Class Protobuf\Extension\ExtensionRegistry

Author: Fabio B. Silva ([email protected])
Show file Open project: protobuf-php/protobuf Class Usage Examples

Protected Properties

Property Type Description
$extensions array

Public Methods

Method Description
add ( ExtensionField $extension ) Adds an element to the registry.
clear ( ) Remove all registered extensions
findByNumber ( string $className, integer $number ) : ExtensionField | null Find an extension by containing field number

Method Details

add() public method

Adds an element to the registry.
public add ( ExtensionField $extension )
$extension ExtensionField

clear() public method

Remove all registered extensions
public clear ( )

findByNumber() public method

Find an extension by containing field number
public findByNumber ( string $className, integer $number ) : ExtensionField | null
$className string
$number integer
return ExtensionField | null

Property Details

$extensions protected property

protected array $extensions
return array