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

StepStub   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the CharacterManagerBundle 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\Model;
13
14
use Pierstoval\Bundle\CharacterManagerBundle\Model\Step;
15
use Pierstoval\Bundle\CharacterManagerBundle\Tests\Fixtures\Stubs\Action\ConcreteAbstractActionStub;
16
17
class StepStub extends Step
18
{
19
    public static function createStub(array $data = [])
20
    {
21
        $data = array_merge([
22
            'number' => 0,
23
            'name' => 'test_step',
24
            'label' => 'Test step',
25
            'action' => ConcreteAbstractActionStub::class,
26
            'manager_name' => 'test_manager',
27
            'onchange_clear' => [], // On cache clear
28
            'dependencies' => [] // Dependencies
29
        ], $data);
30
31
        return static::createFromData($data);
32
    }
33
}
34