Completed
Push — master ( c5dddd...56539a )
by Mathias
21s queued 17s
created

CustomerNoteFieldset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright https://yawik.org/COPYRIGHT.php
8
 */
9
10
/** */
11
namespace Jobs\Form;
12
13
use Core\Form\MetaDataFieldset;
14
use Core\Form\ViewPartialProviderInterface;
15
use Core\Form\ViewPartialProviderTrait;
16
17
/**
18
 * ${CARET}
19
 *
20
 * @author Mathias Gelhausen <[email protected]>
21
 * @author Anthonius Munthi <[email protected]>
22
 */
23
class CustomerNoteFieldset extends MetaDataFieldset implements ViewPartialProviderInterface
24
{
25
    use ViewPartialProviderTrait;
26
27
    protected $defaultPartial = 'jobs/form/customer-note';
28
29 1
    public function init()
30
    {
31 1
        $this->setAttribute('id', 'customerNoteFieldset');
32 1
        $this->setName('customerNote');
33 1
        $this->add([
34 1
                'type' => 'Textarea',
35
                'name' => 'note',
36
            ]);
37
    }
38
}
39