Completed
Push — master ( 1358d6...984c1e )
by Karsten
01:40
created

IsNotSameAs   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
/**
3
 * File was created 29.05.2015 21:25
4
 *
5
 * @author Karsten J. Gerber <[email protected]>
6
 */
7
namespace PeekAndPoke\Component\Psi\Psi;
8
9
use PeekAndPoke\Component\Psi\Functions\Unary\AbstractParameterizedUnaryFunction;
10
11
/**
12
 * NotSameAs does a type safe comparison "!=="
13
 *
14
 * @author Karsten J. Gerber <[email protected]>
15
 */
16
class IsNotSameAs extends AbstractParameterizedUnaryFunction
17
{
18
    /**
19
     * @param mixed $input
20
     *
21
     * @return bool
22
     */
23 15
    public function __invoke($input)
24
    {
25 15
        return $input !== $this->getValue();
26
    }
27
}
28