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

Action::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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