Completed
Push — master ( 242356...67167b )
by Emily
02:33
created

MixedType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 17
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A compatible() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Composite Utils package.
4
 *
5
 * (c) Emily Shepherd <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the
8
 * LICENSE.md file that was distributed with this source code.
9
 *
10
 * @package spaark/composite-utils
11
 * @author Emily Shepherd <[email protected]>
12
 * @license MIT
13
 */
14
15
namespace Spaark\CompositeUtils\Model\Reflection\Type;
16
17
use Spaark\CompositeUtils\Traits\StaticEquatableTrait;
18
19
/**
20
 * Represents a data type which can have any value
21
 */
22
class MixedType extends AbstractType
23
{
24
    use StaticEquatableTrait;
25
26
    /**
27
     * {@inheritDoc}
28
     */
29
    protected $nullable = true;
30
31
    /**
32
     * {@inheritDoc}
33
     */
34
    public function compatible(AbstractType $type) : bool
35
    {
36
        return true;
37
    }
38
}
39