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

ConcreteAbstractActionStub   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 2
dl 0
loc 42
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\AbstractStepAction;
15
use Symfony\Component\HttpFoundation\RedirectResponse;
16
use Symfony\Component\HttpFoundation\Response;
17
use Symfony\Component\HttpFoundation\Session\Session;
18
19
/**
20
 * Mostly here to make protected methods public in order to test them.
21
 */
22
class ConcreteAbstractActionStub extends AbstractStepAction
23
{
24
    public function execute(): Response
25
    {
26
        return new Response('Stub response based on abstract class');
27
    }
28
29
    public function nextStep(): RedirectResponse
30
    {
31
        return parent::nextStep();
32
    }
33
34
    public function updateCharacterStep($value): void
35
    {
36
        parent::updateCharacterStep($value);
37
    }
38
39
    public function flashMessage(string $msg, string $type = null, array $msgParams = []): parent
40
    {
41
        return parent::flashMessage($msg, $type, $msgParams);
42
    }
43
44
    public function goToStep(int $stepNumber): RedirectResponse
45
    {
46
        return parent::goToStep($stepNumber);
47
    }
48
49
    public function getCurrentCharacter(): array
50
    {
51
        return parent::getCurrentCharacter();
52
    }
53
54
    public function getCharacterProperty(string $key = null)
55
    {
56
        return parent::getCharacterProperty($key);
57
    }
58
59
    public function getSession(): Session
60
    {
61
        return parent::getSession();
62
    }
63
}
64