This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from dcelasun/master
Implement stub file for auto-complete support in IDEs
- Loading branch information
Showing
2 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<?php | ||
|
||
die("This is a stub file for IDEs, don't use it directly!"); | ||
|
||
abstract class ProtobufMessage | ||
{ | ||
const PB_TYPE_DOUBLE = 1; | ||
const PB_TYPE_FIXED_32 = 2; | ||
const PB_TYPE_FIXED_64 = 3; | ||
const PB_TYPE_FLOAT = 4; | ||
const PB_TYPE_INT = 5; | ||
const PB_TYPE_SIGNED_INT = 6; | ||
const PB_TYPE_STRING = 7; | ||
const PB_TYPE_BOOL = 8; | ||
|
||
protected $values = array(); | ||
|
||
/** | ||
* @return null | ||
*/ | ||
abstract public function reset(); | ||
|
||
/** | ||
* @param int $position | ||
* @param mixed $value | ||
* | ||
* @return null | ||
*/ | ||
public function append($position, $value) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param int $position | ||
* | ||
* @return null | ||
*/ | ||
public function clear($position) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param bool $onlySet | ||
* @param int $indentation | ||
* | ||
* @return string | ||
*/ | ||
public function dump($onlySet = true, $indentation = 0) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param int $position | ||
* | ||
* @return int | ||
*/ | ||
public function count($position) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param int $position | ||
* | ||
* @return mixed | ||
*/ | ||
public function get($position = -1) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param string $packed | ||
* | ||
* @throws Exception | ||
* | ||
* @return mixed | ||
*/ | ||
public function parseFromString($packed) | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @throws Exception | ||
* | ||
* @return string | ||
*/ | ||
public function serializeToString() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @param int $position | ||
* @param mixed $value | ||
* | ||
* @return null | ||
*/ | ||
public function set($position = -1, $value) | ||
{ | ||
|
||
} | ||
} |