From 46ae90dc5e145b12fffa7e053a908a9f3e066286 Mon Sep 17 00:00:00 2001 From: Paul Yang Date: Thu, 8 Dec 2016 11:16:49 -0800 Subject: Make php generated code conform to PSR-4. (#2435) 1. Generate single file for each message. 2. Lazily initiate metadata. --- php/tests/test_include.pb.php | 48 ------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 php/tests/test_include.pb.php (limited to 'php/tests/test_include.pb.php') diff --git a/php/tests/test_include.pb.php b/php/tests/test_include.pb.php deleted file mode 100644 index 11ff59cb..00000000 --- a/php/tests/test_include.pb.php +++ /dev/null @@ -1,48 +0,0 @@ -bar.TestInclude - */ -class TestInclude extends \Google\Protobuf\Internal\Message -{ - /** - * optional int32 a = 1; - */ - private $a = 0; - - /** - * optional int32 a = 1; - */ - public function getA() - { - return $this->a; - } - - /** - * optional int32 a = 1; - */ - public function setA($var) - { - GPBUtil::checkInt32($var); - $this->a = $var; - } - -} - -$pool = DescriptorPool::getGeneratedPool(); - -$pool->internalAddGeneratedFile(hex2bin( - "0a3b0a12746573745f696e636c7564652e70726f746f120362617222180a" . - "0b54657374496e636c75646512090a0161180120012805620670726f746f" . - "33" -)); - -- cgit v1.2.3