protected function fact($n, $total = 1)
    {
        return (2 > $n) ? $total : $this->fact($n - 1, $total * $n);
    }
protected function fact($n, $total = 1)
    {
        return (2 > $n) ? $total : $this->fact($n - 1, $total * $n);
    }
protected function fact ( $ n , $ total = 1 ) { return ( 2 > $ n ) ? $ total : $ this -> fact ( $ n - 1 , $ total * $ n ) ; }
Compute the factorial of an integer.

@param int $n
The number to get its factorial
@param int $total
The total

@return int
The factorial of $n
Compute the factorial of an integer .