Test::add PHP Method

add() public method

public add ( $a, $b )
    function add($a, $b)
    {
        return $a + $b;
    }

Usage Example

 /**
  * calculate based on test
  * 
  * @param \Example\Test $test
  * @return int
  */
 public function calculate(Test $test)
 {
     return $test->add(1, 2);
 }
All Usage Examples Of Test::add