DidNotGetAccepted::isSatisfiedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 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