Completed
Push — develop ( 6adcbb...6abf52 )
by
unknown
10:12
created

Template   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 92
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setLabelRequirements() 0 4 1
A getLabelRequirements() 0 4 1
A setLabelQualification() 0 4 1
A getLabelQualification() 0 4 1
A setLabelBenefits() 0 4 1
A getLabelBenefits() 0 4 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @license MIT
7
 * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
 */
9
  
10
/** */
11
namespace Organizations\Entity;
12
13
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
14
use Core\Entity\AbstractEntity;
15
16
17
/**
18
 * Organization Template
19
 *
20
 * defines default values of an organisations job template
21
 *
22
 * @ODM\EmbeddedDocument
23
 * @author Carsten Bleek <[email protected]>
24
 * @since 0.23
25
 */
26
class Template extends AbstractEntity implements TemplateInterface
27
{
28
29
    /**
30
     * Label of the requirements field in the job template
31
     *
32
     * @var $string;
33
     */
34
    protected $labelRequirements='Requirements';
35
36
    /**
37
     * Label of the qualifications field in the job template
38
     *
39
     * @var $string;
40
     */
41
    protected $labelQualification='Qualifications';
42
43
    /**
44
     * Label of the benefits field in the job template
45
     *
46
     * @var $string;
47
     */
48
    protected $labelBenefits='Benefits';
49
50
    /**
51
     * Sets the label of the requirements form field
52
     *
53
     * @param string $labelRequirements
54
     *
55
     * @return self
0 ignored issues
show
Documentation introduced by
Should the return type not be Template|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
56
     */
57
    public function setLabelRequirements($labelRequirements)
58
    {
59
        $this->labelRequirements=$labelRequirements;
60
    }
61
62
    /**
63
     * Gets the label of the requirements form field
64
     *
65
     * @return string
66
     */
67
    public function getLabelRequirements()
68
    {
69
        return $this->labelRequirements;
70
    }
71
72
    /**
73
     * Sets the label of the qualifications form field
74
     *
75
     * @param string $labelQualification
76
     *
77
     * @return self
0 ignored issues
show
Documentation introduced by
Should the return type not be Template|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
78
     */
79
    public function setLabelQualification($labelQualification)
80
    {
81
        $this->labelQualification=$labelQualification;
82
    }
83
84
    /**
85
     * Gets the label of the qualifications form field
86
     *
87
     * @return string
88
     */
89
    public function getLabelQualification()
90
    {
91
        return $this->labelQualification;
92
    }
93
94
    /**
95
     * Sets the label of the benefits form field
96
     *
97
     * @param string $labelBenefits
98
     *
99
     * @return self
0 ignored issues
show
Documentation introduced by
Should the return type not be Template|null?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
100
     */
101
    public function setLabelBenefits($labelBenefits)
102
    {
103
        $this->labelBenefits=$labelBenefits;
104
    }
105
106
    /**
107
     * Gets the label of the benefits form field
108
     *
109
     * @return string
110
     */
111
    public function getLabelBenefits()
112
    {
113
        return $this->labelBenefits;
114
    }
115
116
117
}
118