Completed
Push — master ( 6279e9...10f8e7 )
by Kévin
02:39
created

DummyAction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 16
rs 10
1
<?php
2
3
/*
4
 * (c) Kévin Dunglas <[email protected]>
5
 *
6
 * This source file is subject to the MIT license that is bundled
7
 * with this source code in the file LICENSE.
8
 */
9
10
namespace Dunglas\ActionBundle\Tests\Fixtures\TestBundle\Action;
11
12
use Dunglas\ActionBundle\Tests\Fixtures\TestBundle\DummyService;
13
use Symfony\Component\HttpFoundation\Response;
14
15
/**
16
 * @author Kévin Dunglas <[email protected]>
17
 */
18
final class DummyAction
19
{
20
    private $dummy;
21
22
    public function __construct(DummyService $dummy)
23
    {
24
        $this->dummy = $dummy;
25
    }
26
27
    public function __invoke()
28
    {
29
        $this->dummy->doSomething();
30
31
        return new Response('Here we are!');
32
    }
33
}
34