PHP Class Protobuf\MessageCollection

Author: Fabio B. Silva ([email protected])
Inheritance: extends ArrayObjec\ArrayObject, implements Collection
Show file Open project: protobuf-php/protobuf Class Usage Examples

Public Methods

Method Description
__construct ( array $values = [] )
add ( Message $message ) Adds a message to this collection
offsetSet ( $offset, $value )

Method Details

__construct() public method

public __construct ( array $values = [] )
$values array

add() public method

Adds a message to this collection
public add ( Message $message )
$message Message

offsetSet() public method

public offsetSet ( $offset, $value )