Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace Distilleries\Expendable\Http\Datatables\Email; |
||
8 | public function build() |
||
9 | { |
||
10 | $this->add('id'); |
||
11 | $this->add('libelle', null, trans('expendable::datatable.subject')); |
||
|
|||
12 | $this->add('body_type', function($model) |
||
13 | { |
||
14 | return StaticLabel::bodyType($model->body_type); |
||
15 | },trans('expendable::datatable.type')); |
||
16 | $this->add('action', function($model) |
||
17 | { |
||
18 | return StaticLabel::mailActions($model->action); |
||
19 | }); |
||
20 | $this->add('cc'); |
||
21 | $this->add('bcc'); |
||
22 | $this->addTranslationAction(); |
||
23 | $this->addDefaultAction(); |
||
24 | } |
||
25 | } |