Completed
Push — master ( e32202...083db4 )
by Alex
08:17
created

StepActionStub   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the PierstovalCharacterManagerBundle package.
5
 *
6
 * (c) Alexandre Rock Ancelet <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Pierstoval\Bundle\CharacterManagerBundle\Tests\Fixtures\Stubs\Action;
13
14
use Pierstoval\Bundle\CharacterManagerBundle\Action\StepActionInterface;
15
use Pierstoval\Bundle\CharacterManagerBundle\Model\StepInterface;
16
use Pierstoval\Bundle\CharacterManagerBundle\Resolver\StepResolverInterface;
17
use Pierstoval\Bundle\CharacterManagerBundle\Tests\Fixtures\Stubs\Model\StepStub;
18
use Symfony\Component\HttpFoundation\Request;
19
use Symfony\Component\HttpFoundation\Response;
20
21
class StepActionStub implements StepActionInterface
22
{
23
    private $step;
24
25
    public function execute(): Response
26
    {
27
        return new Response('Stub response');
28
    }
29
30
    public function getStep(): StepInterface
31
    {
32
        return $this->step ?: ($this->step = StepStub::createStub());
33
    }
34
35
    public function setRequest(Request $request): void
36
    {
37
    }
38
39
    public function configure(string $managerName, string $stepName, string $characterClassName, StepResolverInterface $resolver): void
40
    {
41
    }
42
}
43