JobDescription::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
c 0
b 0
f 0
ccs 0
cts 14
cp 0
rs 9.9332
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright https://yawik.org/COPYRIGHT.php
7
 * @license   MIT
8
 * @author    [email protected]
9
 */
10
11
namespace Jobs\Form;
12
13
use Core\Form\Container;
14
use Core\Form\ViewPartialProviderInterface;
15
16
/**
17
 * Adds an iFrame to the job formular which holds the editable job opening.
18
 *
19
 * @package Jobs\Form
20
 */
21
class JobDescription extends Container implements ViewPartialProviderInterface
22
{
23
    public function init()
24
    {
25
        $this->setName('jobs-form-description');
26
        $this->setAttributes(
27
            array(
28
            'id' => 'jobs-form-description',
29
            'data-handle-by' => 'native'
30
            )
31
        );
32
33
        $this->setForms(
34
            array(
35
            'atsMode' => array(
36
                'type' => 'Jobs/AtsMode',
37
                'property' => 'atsMode',
38
            )
39
            )
40
        );
41
    }
42
43
    public function setViewPartial($partial)
44
    {
45
        return $this;
46
    }
47
48
    public function getViewPartial()
49
    {
50
        return 'iframe/iFrame.phtml';
51
    }
52
}
53