Completed
Pull Request — dev (#9)
by Arnaud
02:46
created

Action   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 66.67%

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 2
c 2
b 2
f 0
lcom 1
cbo 2
dl 0
loc 23
ccs 4
cts 6
cp 0.6667
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A render() 0 8 1
1
<?php
2
3
namespace LAG\AdminBundle\Field\Field;
4
5
class Action extends Link
6
{
7
    /**
8
     * @param string $value
9
     * @return string
10
     */
11 1
    public function render($value)
12
    {
13 1
        $value = $this
14
            ->options
15 1
            ->get('title');
16
17 1
        return parent::render($value);
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getType()
24
    {
25
        return 'action';
26
    }
27
}
28