Completed
Push — develop ( 69bf64...c61561 )
by
unknown
17:17 queued 09:01
created

Education::getCurrectIndicator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
 * @license   MIT
8
 */
9
10
11
namespace Cv\Entity;
12
13
use Core\Entity\AbstractIdentifiableEntity;
14
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
15
16
/**
17
 * @ODM\EmbeddedDocument
18
 */
19
class Education extends AbstractIdentifiableEntity
20
{
21
22
    /**
23
     * @var string
24
     * @ODM\Field(type="string")
25
     */
26
    protected $startDate;
27
28
    /**
29
     * @var string
30
     * @ODM\Field(type="string")
31
     */
32
    protected $endDate;
33
34
    /**
35
     * @var bool
36
     * @ODM\Boolean
37
     */
38
    protected $currentIndicator;
39
40
    /**
41
     * @var string
42
     * @ODM\Field(type="string")
43
     */
44
    protected $competencyName;
45
46
    /**
47
     * @ODM\Field(type="string")
48
     */
49
    protected $organizationName;
50
51
    /**
52
     * @var string
53
     * @ODM\Field(type="string")
54
     */
55
    protected $description;
56
57
    /**
58
     * needed for europass
59
     * @ODM\Field(type="string")
60
     */
61
    protected $nationalClassification;
62
    
63
    /**
64
     * @var string
65
     * @ODM\Field(type="string")
66
     */
67
    protected $country;
68
    
69
    /**
70
     * @var string
71
     * @ODM\Field(type="string")
72
     */
73
    protected $city;
74
    
75
    
76
    public function setStartDate($startDate)
77
    {
78
        $this->startDate = (string) $startDate;
79
        return $this;
80
    }
81
    
82
    public function getStartDate()
83
    {
84
        return $this->startDate;
85
    }
86
    
87
    public function setEndDate($endDate)
88
    {
89
        $this->endDate = $endDate;
90
        return $this;
91
    }
92
    
93
    public function getEndDate()
94
    {
95
        return $this->endDate;
96
    }
97
    
98
    /**
99
     * marks the education as ongoing
100
     *
101
     * @param bool $currentIndicator
102
     * @return \Cv\Entity\Education
103
     */
104
    public function setCurrentIndicator($currentIndicator)
105
    {
106
        $this->currentIndicator=$currentIndicator;
107
        return $this;
108
    }
109
    
110
    /**
111
     * indicates that the education is ongoing
112
     *
113
     * @return bool
114
     */
115
    public function getCurrentIndicator()
0 ignored issues
show
Coding Style introduced by
function getCurrentIndicator() does not seem to conform to the naming convention (^(?:is|has|should|may|supports)).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
116
    {
117
        return $this->currentIndicator;
118
    }
119
120
    public function setCompetencyName($competencyName)
121
    {
122
        $this->competencyName = $competencyName;
123
        return $this;
124
    }
125
    
126
    public function getCompetencyName()
127
    {
128
        return $this->competencyName;
129
    }
130
    
131
    /**
132
     * @return the $organizationName
0 ignored issues
show
Documentation introduced by
Should the return type not be field_type?

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...
133
     */
134
    public function getOrganizationName()
135
    {
136
        return $this->organizationName;
137
    }
138
139
    /**
140
     * @param field_type $organizationName
141
     */
142
    public function setOrganizationName($organizationName)
143
    {
144
        $this->organizationName = $organizationName;
145
        return $this;
146
    }
147
148
    public function setDescription($value)
149
    {
150
        $this->description = $value;
151
        return $this;
152
    }
153
    
154
    public function getDescription()
155
    {
156
        return $this->description;
157
    }
158
    
159
	/**
160
	 * @return string
161
	 */
162
	public function getCountry()
163
	{
164
		return $this->country;
165
	}
166
167
	/**
168
	 * @param string $country
169
	 * @return Education
170
	 */
171
	public function setCountry($country)
172
	{
173
		$this->country = $country;
174
		
175
		return $this;
176
	}
177
178
	/**
179
	 * @return string
180
	 */
181
	public function getCity()
182
	{
183
		return $this->city;
184
	}
185
186
	/**
187
	 * @param string $city
188
	 * @return Education
189
	 */
190
	public function setCity($city)
191
	{
192
		$this->city = $city;
193
		
194
		return $this;
195
	}
196
}
197