Failed Conditions
Push — master ( ecccd5...ae55c7 )
by Marco
33s
created

MixedType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 13
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A describe() 0 3 1
A validate() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Annotations\Type;
6
7
/**
8
 * @internal
9
 */
10
final class MixedType implements Type
11
{
12 2
    public function describe() : string
13
    {
14 2
        return 'mixed';
15
    }
16
17
    /**
18
     * @param mixed $value
19
     */
20 232
    public function validate($value) : bool
21
    {
22 232
        return true;
23
    }
24
}
25