Mail   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 18
dl 0
loc 33
c 0
b 0
f 0
ccs 0
cts 25
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 27 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright https://yawik.org/COPYRIGHT.php
7
 * @author [email protected]
8
 * @license   MIT
9
 */
10
11
namespace Applications\Form;
12
13
use Core\Form\Form;
14
15
/**
16
 * Formular for inviting or rejecting applicants
17
 */
18
class Mail extends Form
19
{
20
21
    /**
22
     * initialize mail forward form
23
     */
24
    public function init()
25
    {
26
        $this->setName('applicant-mail');
27
28
29
        $this
30
        ->add(
31
            array(
32
            'type' => 'hidden',
33
            'name' => 'applicationId',
34
            )
35
        )
36
        ->add(
37
            array(
38
            'type' => 'hidden',
39
            'name' => 'status',
40
            )
41
        )
42
        ->add(
43
            array(
44
            'name' => 'mailSubject',
45
            )
46
        )
47
        ->add(
48
            array(
49
            'type' => 'textarea',
50
            'name' => 'mailText'
51
            )
52
        );
53
    }
54
}
55