TypeHinting   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 0
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A anInstanceOf() 0 6 1
1
<?php
2
/**
3
 * ShouldPHP
4
 *
5
 * @author  Gabriel Jacinto <[email protected]>
6
 * @status  dev
7
 * @link    https://github.com/GabrielJMJ/ShouldPHP
8
 * @license MIT
9
 */
10
 
11
namespace Gabrieljmj\Should\Options;
12
13
class TypeHinting
14
{
15
    const ARR = 1;
16
    const CALL = 2;
17
    const VARIADIC = 3;
18
    const INSTANCE_OF = 4;
19
20
    public static $class;
21
22
    public static function anInstanceOf($class)
23
    {
24
        self::$class = $class;
25
26
        return self::INSTANCE_OF;
27
    }
28
}