mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
WS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333169 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d8d9a1e6a4
commit
095f25e181
1 changed files with 28 additions and 28 deletions
|
@ -13,37 +13,37 @@
|
|||
|
||||
class Operator {
|
||||
|
||||
/**
|
||||
* Add two operands
|
||||
* @param interge
|
||||
* @return interge
|
||||
*/
|
||||
public function add($a, $b) {
|
||||
return $this->_add($a, $b);
|
||||
}
|
||||
/**
|
||||
* Add two operands
|
||||
* @param interge
|
||||
* @return interge
|
||||
*/
|
||||
public function add($a, $b) {
|
||||
return $this->_add($a, $b);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sub
|
||||
*/
|
||||
public function sub($a, $b) {
|
||||
return $a - $b;
|
||||
}
|
||||
/**
|
||||
* Sub
|
||||
*/
|
||||
public function sub($a, $b) {
|
||||
return $a - $b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mul
|
||||
*/
|
||||
public function mul($a, $b) {
|
||||
return $a * $b;
|
||||
}
|
||||
/**
|
||||
* Mul
|
||||
*/
|
||||
public function mul($a, $b) {
|
||||
return $a * $b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Protected methods will not be exposed
|
||||
* @param interge
|
||||
* @return interge
|
||||
*/
|
||||
protected function _add($a, $b) {
|
||||
return $a + $b;
|
||||
}
|
||||
/**
|
||||
* Protected methods will not be exposed
|
||||
* @param interge
|
||||
* @return interge
|
||||
*/
|
||||
protected function _add($a, $b) {
|
||||
return $a + $b;
|
||||
}
|
||||
}
|
||||
|
||||
$server = new Yar_Server(new Operator());
|
||||
|
|
Loading…
Reference in a new issue