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

CustomerNoteFieldset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 7 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