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

DummyAction::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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