aboutsummaryrefslogtreecommitdiff
path: root/php/src/Google/Protobuf/Internal/EnumDescriptorProto.php
Commit message (Collapse)AuthorAgeFilesLines
* adds PHP typehints for message setters (#4533)php-generated-devBrent Shaffer2018-06-191-1/+1
|
* PHP namespaces for nested messages and enums (#4536)Brent Shaffer2018-05-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * uses namespaces for nested messages and enums * fixes namespaces for PHP dist * fixes namespace for Descriptors, adds Cardinality and Kind * fixes nested namespaces for reserved words and adds tests * adds tests and generator fix for php class prefixes * fixes escaping of protobuf packages, enum comments, misc others * nice refactor of generated code * adds class files for backwards compatibility * simplifies code with templates * adds compatibility files to makefile * cleanup of generator and fixes nested namespace bug * regenerates proto types * remove internal BC classes * adds deprecated warning, adds methods back * simplifies if statement * fixes dist files * addresses review comments * adds back TYPE_URL_PREFIX constant * adds @deprecated to old nested class files * skips tests which require a separate process when protobuf.so is enabled * Adds tests for legacy nested classes that do not require separate processes to test * uses legacy names for GPBUtil message check * adds block for IDE @deprecated message * Namespace for nested message/enum in c extension * Remove unused code
* PHP array constructors for protobuf messages (#4530)Brent Shaffer2018-05-151-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP array constructors for protobuf messages * removes Descriptor from error message * allows mergeFrom to accept an array * only use initWithDescriptor if instanceof MapEntry * adds doc comments * removes ability for constructors to take arrays for submessages * Revert "allows mergeFrom to accept an array" This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9. * makes mergeFromArray protected and fixes mergeFrom whitespace * Separates merging from JSON and merging from PHP array * removes well-known types and json keys from array construction * Addresses PR review comments * cleans up tests * fixes exception messages
* Integrated internal changes from GoogleAdam Cozzette2017-09-141-0/+87
|
* compiles removal of newline (#3333) (#3370)Brent Shaffer2017-07-191-1/+0
|
* remove pass by reference for php setters (#3344)Brent Shaffer2017-07-171-2/+2
| | | | | | * remove pass by reference for php setters * comments out memory leak test
* adds PHPDoc @return and @param for getters and setters respectively (#3131)Brent Shaffer2017-06-271-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | * adds PHPDoc @return and @param for getters and setters respectively * addresses changes in PR review * adds documentation tests * Update php_generator: - Prepend \ to names where required - Remove <pre> tags - Update protobuf field comments * Updates class files with the protobuf changes * Addresses review comments * removes Protobuf Type line from PHP generated classes * fixes phpdoc test * adds array types to phpdoc
* Add new file option php_namespace. (#3162)Paul Yang2017-06-051-0/+6
| | | | | | | | | | | | | | | | * Add new file option php_namespace. Use this option to change the namespace of php generated classes. Default is empty. When this option is empty, the package name will be used for determining the namespace. * Uncomment commented tests * Revert gdb test change * Update csharp descriptor. * Add test for empty php_namespace.
* Add file option php_class_prefix (#2849)Paul Yang2017-03-171-2/+2
| | | | This option will be prepended to generated classes of all messages in the containing file.
* Make php generated code conform to PSR-4. (#2435)Paul Yang2016-12-081-0/+114
1. Generate single file for each message. 2. Lazily initiate metadata.