Completed
Push — master ( 67ec2b...d15b3f )
by Dominik
02:51
created

MissingRequirementException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Chubbyphp\Security\Authentication\Exception;
4
5
final class MissingRequirementException extends \RuntimeException implements AuthenticationExceptionInterface
6
{
7
    /**
8
     * @param array $fields
9
     *
10
     * @return MissingRequirementException
11
     */
12
    public static function create(array $fields): self
13
    {
14
        return new self(sprintf('Missing required criteria %s', implode(', ', $fields)));
15
    }
16
}
17