Passed
Pull Request — master (#300)
by Arnaud
14:15 queued 08:05
created

ActionView::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php
2
3
namespace LAG\AdminBundle\Admin\View;
4
5
use LAG\AdminBundle\Admin\Configuration\ActionConfiguration;
6
7
class ActionView
8
{
9
    public function __construct(
10
        private string $name,
11
        private ActionConfiguration $configuration,
12
    )
13
    {
14
    }
15
16
    public function getName(): string
17
    {
18
        return $this->name;
19
    }
20
21
    public function getConfiguration(): ActionConfiguration
22
    {
23
        return $this->configuration;
24
    }
25
26
    public function getTitle(): string
27
    {
28
        return $this->configuration->getTitle();
29
    }
30
}
31