class Calculator in Zircon Profile 8
Same name and namespace in other branches
Hierarchy
- class \Calculator
Expanded class hierarchy of Calculator
File
- vendor/
phpunit/ phpunit/ tests/ _files/ Calculator.php, line 2
View source
class Calculator {
/**
* @assert (0, 0) == 0
* @assert (0, 1) == 1
* @assert (1, 0) == 1
* @assert (1, 1) == 2
*/
public function add($a, $b) {
return $a + $b;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Calculator:: |
public | function | @assert (0, 0) == 0 @assert (0, 1) == 1 @assert (1, 0) == 1 @assert (1, 1) == 2 |