Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 8... Zeile 8...
8
 * Exception thrown when a division by zero occurs.
8
 * Exception thrown when a division by zero occurs.
9
 */
9
 */
10
class DivisionByZeroException extends MathException
10
class DivisionByZeroException extends MathException
11
{
11
{
12
    /**
12
    /**
13
     * @return DivisionByZeroException
-
 
14
     *
-
 
15
     * @psalm-pure
13
     * @psalm-pure
16
     */
14
     */
17
    public static function divisionByZero() : DivisionByZeroException
15
    public static function divisionByZero() : DivisionByZeroException
18
    {
16
    {
19
        return new self('Division by zero.');
17
        return new self('Division by zero.');
20
    }
18
    }
Zeile 21... Zeile 19...
21
 
19
 
22
    /**
-
 
23
     * @return DivisionByZeroException
-
 
24
     *
20
    /**
25
     * @psalm-pure
21
     * @psalm-pure
26
     */
22
     */
27
    public static function modulusMustNotBeZero() : DivisionByZeroException
23
    public static function modulusMustNotBeZero() : DivisionByZeroException
28
    {
24
    {
29
        return new self('The modulus must not be zero.');
25
        return new self('The modulus must not be zero.');
Zeile 30... Zeile 26...
30
    }
26
    }
31
 
-
 
32
    /**
-
 
33
     * @return DivisionByZeroException
27
 
34
     *
28
    /**
35
     * @psalm-pure
29
     * @psalm-pure
36
     */
30
     */
37
    public static function denominatorMustNotBeZero() : DivisionByZeroException
31
    public static function denominatorMustNotBeZero() : DivisionByZeroException