Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
f8ca3acd
Commit
f8ca3acd
authored
Dec 01, 2016
by
Paul Yang
Committed by
GitHub
Dec 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate phpdoc in php generated files. (#2406)
parent
851cb81d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
test.pb.php
php/tests/test.pb.php
+0
-0
test.proto
php/tests/test.proto
+5
-0
test_include.pb.php
php/tests/test_include.pb.php
+12
-0
php_generator.cc
src/google/protobuf/compiler/php/php_generator.cc
+0
-0
No files found.
php/tests/test.pb.php
View file @
f8ca3acd
This diff is collapsed.
Click to expand it.
php/tests/test.proto
View file @
f8ca3acd
...
...
@@ -134,3 +134,8 @@ message TestUnpackedMessage {
repeated
bool
repeated_bool
=
102
[
packed
=
false
];
repeated
TestEnum
repeated_enum
=
103
[
packed
=
false
];
}
// /**/@<>&\{
message
TestPhpDoc
{
int32
a
=
1
;
}
php/tests/test_include.pb.php
View file @
f8ca3acd
...
...
@@ -9,15 +9,27 @@ use Google\Protobuf\Internal\GPBType;
use
Google\Protobuf\Internal\RepeatedField
;
use
Google\Protobuf\Internal\GPBUtil
;
/**
* Protobuf type <code>bar.TestInclude</code>
*/
class
TestInclude
extends
\Google\Protobuf\Internal\Message
{
/**
* <code>optional int32 a = 1;</code>
*/
private
$a
=
0
;
/**
* <code>optional int32 a = 1;</code>
*/
public
function
getA
()
{
return
$this
->
a
;
}
/**
* <code>optional int32 a = 1;</code>
*/
public
function
setA
(
$var
)
{
GPBUtil
::
checkInt32
(
$var
);
...
...
src/google/protobuf/compiler/php/php_generator.cc
View file @
f8ca3acd
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment