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

Action::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 2 Features 0
Metric Value
c 2
b 2
f 0
dl 0
loc 8
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 1
crap 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