function add($a, $b) { return $a + $b; }
/** * calculate based on test * * @param \Example\Test $test * @return int */ public function calculate(Test $test) { return $test->add(1, 2); }