function Message::appendHelper
3 calls to Message::appendHelper()
- Message::mergeFrom in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php - Merges the contents of the specified message into current message.
- Message::mergeFromArrayJsonImpl in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php - Message::parseFieldFromStream in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php - @ignore
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ Message.php, line 1915
Class
- Message
- Parent class of all proto messages. Users should not instantiate this class or extend this class or its child classes by their own. See the comment of specific functions for more details.
Namespace
Google\Protobuf\InternalCode
private function appendHelper($field, $append_value) {
$getter = $field->getGetter();
$setter = $field->getSetter();
$field_arr_value = $this->{$getter}();
$field_arr_value[] = $append_value;
if (!is_object($field_arr_value)) {
$this->{$setter}($field_arr_value);
}
}