Completed
Push — develop ( c61561...247dd8 )
by
unknown
17:35 queued 09:17
created

PreferredJob::setTypeOfApplication()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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
namespace Cv\Entity;
11
12
use Core\Entity\AbstractIdentifiableEntity;
13
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
14
use Doctrine\Common\Collections\Collection;
15
16
/**
17
 * @ODM\EmbeddedDocument
18
 */
19
class PreferredJob extends AbstractIdentifiableEntity implements \PreferredJobInterface
20
{
21
    /**
22
     * @var array
23
     * @ODM\Collection
24
     */
25
    protected $typeOfApplication;
26
27
    /**
28
     * @var string
29
     * @ODM\Field(type="string")
30
     */
31
    protected $desiredJob;
32
    
33
    /**
34
     * @var string
35
     * @ODM\Field(type="string")
36
     **/
37
    protected $desiredLocation;
38
39
    /**
40
     * @var Collection
41
     * @ODM\EmbedMany(targetDocument="\Core\Entity\Location")
42
     **/
43
    protected $desiredLocations;
44
45
46
    /**
47
     * willingness to travel,
48
     *
49
     * yes, no, bedingt
50
     *
51
     * @ODM\Field(type="string") */
52
    protected $willingnessToTravel;
53
54
55
    /** expectedSalary
56
     * @ODM\Field(type="string") */
57
    protected $expectedSalary;
58
59
    /**
60
     * Apply for a job, internship or studies
61
     *
62
     * @param string $typeOfApplication
63
     * @return \Cv\Entity\PreferredJob
64
     */
65
    public function setTypeOfApplication($typeOfApplication)
66
    {
67
        $this->typeOfApplication=$typeOfApplication;
0 ignored issues
show
Documentation Bug introduced by
It seems like $typeOfApplication of type string is incompatible with the declared type array of property $typeOfApplication.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
68
        return $this;
69
    }
70
71
    /**
72
     * Gets the type of an Application
73
     *
74
     * @return string
0 ignored issues
show
Documentation introduced by
Should the return type not be array?

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...
75
     */
76
    public function getTypeOfApplication()
77
    {
78
        return $this->typeOfApplication;
79
    }
80
    
81
    public function setDesiredJob($desiredJob)
82
    {
83
        $this->desiredJob=$desiredJob;
84
        return $this;
85
    }
86
    
87
    public function getDesiredJob()
88
    {
89
        return $this->desiredJob;
90
    }
91
92
    public function setDesiredLocation($desiredLocation)
93
    {
94
        $this->desiredLocation=$desiredLocation;
95
        return $this;
96
    }
97
98
    public function getDesiredLocation()
99
    {
100
        return $this->desiredLocation;
101
    }
102
103
    public function setDesiredLocations($desiredLocations)
104
    {
105
        $this->desiredLocation=$desiredLocations;
106
        return $this;
107
    }
108
109
    public function getDesiredLocations()
110
    {
111
        return $this->desiredLocations;
112
    }
113
    
114
    public function setWillingnessToTravel($willingnessToTravel)
115
    {
116
        $this->willingnessToTravel=$willingnessToTravel;
117
        return $this;
118
    }
119
    
120
    public function getWillingnessToTravel()
121
    {
122
        return $this->willingnessToTravel;
123
    }
124
125
    public function setExpectedSalary($expectedSalary)
126
    {
127
        $this->expectedSalary=$expectedSalary;
128
        return $this;
129
    }
130
131
    public function getExpectedSalary()
132
    {
133
        return $this->expectedSalary;
134
    }
135
}
136