DeleteAction::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 2
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