Create   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 23
c 1
b 1
f 0
dl 0
loc 47
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 45 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\Metadata;
6
7
use LAG\AdminBundle\Bridge\Doctrine\ORM\State\ORMDataProcessor;
8
use LAG\AdminBundle\Bridge\Doctrine\ORM\State\ORMDataProvider;
9
10
class Create extends Operation
11
{
12
    public function __construct(
13
        ?string $name = 'create',
14
        ?string $title = null,
15
        ?string $description = null,
16
        ?string $icon = null,
17
        ?string $template = '@LAGAdmin/crud/create.html.twig',
18
        ?array $permissions = [],
19
        ?string $controller = \LAG\AdminBundle\Controller\Create::class,
20
        ?string $route = null,
21
        ?array $routeParameters = null,
22
        array $methods = ['POST', 'GET'],
23
        string $path = '/create',
24
        ?string $targetRoute = null,
25
        ?array $targetRouteParameters = null,
26
        array $properties = [],
27
        ?string $formType = null,
28
        array $formOptions = [],
29
        string $processor = ORMDataProcessor::class,
30
        string $provider = ORMDataProvider::class,
31
        array $identifiers = [],
32
        ?array $contextualActions = null,
33
        ?array $itemActions = null
34
    ) {
35
        parent::__construct(
36
            $name,
37
            $title,
38
            $description,
39
            $icon,
40
            $template,
41
            $permissions,
42
            $controller,
43
            $route,
44
            $routeParameters,
45
            $methods,
46
            $path,
47
            $targetRoute,
48
            $targetRouteParameters,
49
            $properties,
50
            $formType,
51
            $formOptions,
52
            $processor,
53
            $provider,
54
            $identifiers,
55
            $contextualActions,
56
            $itemActions,
57
        );
58
    }
59
}
60