Completed
Push — develop ( ad187c...f818a7 )
by Jaap
09:04
created

ReducerStub::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2016 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\Application\ReadModel\Mapper\Project;
14
15
use phpDocumentor\DomainModel\ReadModel\Mapper\Project\Interpret as InterpretInterface;
16
17
final class ReducerStub extends AbstractReducer
18
{
19
    public $isCalled = 0;
20
21
    public function __invoke(InterpretInterface $command, $state)
22
    {
23
        $this->isCalled += 1;
24
25
        return $state;
26
    }
27
}
28