Completed
Push — develop ( 7f4a0b...601ff8 )
by Arkadiusz
03:21
created

NormalizerException::fitNotAllowed()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare (strict_types = 1);
4
5
namespace Phpml\Exception;
6
7
class NormalizerException extends \Exception
8
{
9
    /**
10
     * @return NormalizerException
11
     */
12
    public static function unknownNorm()
13
    {
14
        return new self('Unknown norm supplied.');
15
    }
16
17
    /**
18
     * @return NormalizerException
19
     */
20
    public static function fitNotAllowed()
21
    {
22
        return new self('Fit is not allowed for this preprocessor.');
23
    }
24
}
25