PluginProbe
Media Cloud Sync / 1.3.11
Media Cloud Sync v1.3.11
1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 All 34 releases
media-cloud-sync / includes / sdk / google / brick / math / src / Exception / DivisionByZeroException.php

DivisionByZeroException.php in Media Cloud Sync 1.3.11, at includes/sdk/google/brick/math/src/Exception/DivisionByZeroException.php

33 lines 754 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare (strict_types=1);
4 namespace Dudlewebs\WPMCS\GCP\Brick\Math\Exception;
5
6 /**
7 * Exception thrown when a division by zero occurs.
8 */
9 class DivisionByZeroException extends MathException
10 {
11 /**
12 * @psalm-pure
13 */
14 public static function divisionByZero() : DivisionByZeroException
15 {
16 return new self('Division by zero.');
17 }
18 /**
19 * @psalm-pure
20 */
21 public static function modulusMustNotBeZero() : DivisionByZeroException
22 {
23 return new self('The modulus must not be zero.');
24 }
25 /**
26 * @psalm-pure
27 */
28 public static function denominatorMustNotBeZero() : DivisionByZeroException
29 {
30 return new self('The denominator of a rational number cannot be zero.');
31 }
32 }
33