DeleteAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
namespace Admingenerator\GeneratorBundle\Generator\Action\Batch;
4
5
use Admingenerator\GeneratorBundle\Builder\Admin\BaseBuilder;
6
use Admingenerator\GeneratorBundle\Generator\Action;
7
8
/**
9
 * This class describes batch Delete action
10
 * @author cedric Lombardot
11
 * @author Piotr Gołębiewski <[email protected]>
12
 */
13
class DeleteAction extends Action
14
{
15
    public function __construct($name, BaseBuilder $builder)
16
    {
17
        parent::__construct($name, 'batch');
18
19
        $this->setIcon('fa-times');
20
        $this->setLabel('action.batch.delete.label');
21
        $this->setConfirm('action.batch.delete.confirm');
22
        $this->setCsrfProtected(true);
23
    }
24
}
25