DidNotGetAccepted   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A yet() 0 3 1
A isSatisfiedBy() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Stratadox\Deserializer\Condition;
5
6
7
use Stratadox\Specification\Contract\Satisfiable;
8
9
/**
10
 * Condition that accepts all input.
11
 *
12
 * Can be used like the default clause in a switch statement, but in the context
13
 * of a discriminator map.
14
 *
15
 * @author Stratadox
16
 */
17
final class DidNotGetAccepted implements Satisfiable
18
{
19
    public static function yet(): Satisfiable
20
    {
21
        return new self();
22
    }
23
24
    public function isSatisfiedBy($object): bool
25
    {
26
        return true;
27
    }
28
}
29