Completed
Push — develop ( bc6cb3...7609bb )
by
unknown
09:12
created

ViewModelTemplateFilterJob   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 27
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A extract() 0 19 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 * @author    [email protected]
9
 */
10
11
namespace Jobs\Filter;
12
13
/**
14
 * template viewmodel html
15
 * Class ViewModelTemplateFilterJob
16
 * @package Jobs\Filter
17
 */
18
class ViewModelTemplateFilterJob extends ViewModelTemplateFilterAbstract
19
{
20
    /**
21
     * assign the form-elements to the template
22
     * @param $job
23
     * @return $this
24
     */
25
    protected function extract($job)
26
    {
27
        $this->job = $job;
28
        $this->setUriApply();
29
        $this->setOrganizationInfo();
30
        $this->setLocation();
31
        $this->setDescription();
32
        $this->setTemplate();
33
34
        $this->container['descriptionEditable'] = $job->templateValues->description;
35
        $this->container['benefits'] = $job->templateValues->benefits;
36
        $this->container['requirements'] = $job->templateValues->requirements;
37
        $this->container['qualifications'] = $job->templateValues->qualifications;
38
        $this->container['title'] = $job->templateValues->title;
39
        $this->container['headTitle'] = strip_tags($job->templateValues->title);
40
41
        $this->container['contactEmail'] = strip_tags($job->contactEmail);
42
        return $this;
43
    }
44
}
45