Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
2 / 2 |
| MatrixException | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
2 / 2 |
| notSquareMatrix | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| columnOutOfRange | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| declare (strict_types = 1); | |
| namespace Phpml\Exception; | |
| class MatrixException extends \Exception | |
| { | |
| /** | |
| * @return MatrixException | |
| */ | |
| public static function notSquareMatrix() | |
| { | |
| return new self('Matrix is not square matrix'); | |
| } | |
| /** | |
| * @return MatrixException | |
| */ | |
| public static function columnOutOfRange() | |
| { | |
| return new self('Column out of range'); | |
| } | |
| } |