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

ActionView   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 3 1
A getTitle() 0 3 1
A getName() 0 3 1
A __construct() 0 5 1
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