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

Skill::setNativeLanguages()   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 Core\Entity\Collection\ArrayCollection;
14
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
15
16
/**
17
 * initial Skill class.
18
 *
19
 * @package Cv\Entity
20
 * @ODM\EmbeddedDocument
21
 */
22
class Skill extends AbstractIdentifiableEntity
23
{
24
    
25
    /**
26
     * @ODM\EmbedMany(targetDocument="NativeLanguage")
27
     * @var ArrayCollection
28
     */
29
    protected $nativeLanguages;
30
    /**
31
     *
32
     * @var ArrayCollection
33
     * @ODM\EmbedMany(targetDocument="Language")
34
     */
35
    protected $languageSkills;
36
    
37
    /**
38
     *
39
     * @var ArrayCollection
40
     * @ODM\EmbedMany(targetDocument="ComputerSkill")
41
     */
42
    protected $computerSkills;
43
    
44
    public function __construct()
45
    {
46
        $this->nativeLanguages = new ArrayCollection();
47
        $this->languageSkills = new ArrayCollection();
48
        $this->computerSkills = new ArrayCollection();
49
    }
50
51
    /**
52
     * @param $nativeLanguages
53
     * @return $this
54
     */
55
    public function setNativeLanguages($nativeLanguages)
56
    {
57
        $this->nativeLanguages = $nativeLanguages;
58
        return $this;
59
    }
60
61
    /**
62
     * @return ArrayCollection
63
     */
64
    public function getNativeLanguages()
65
    {
66
        return $this->nativeLanguages;
67
    }
68
69
    /**
70
     * @param $languageSkills
71
     * @return $this
72
     */
73
    public function setLanguageSkills($languageSkills)
74
    {
75
        $this->languageSkills = $languageSkills;
76
        return $this;
77
    }
78
79
    /**
80
     * @return ArrayCollection
81
     */
82
    public function getLanguageSkills()
83
    {
84
        return $this->languageSkills;
85
    }
86
87
    /**
88
     * @param $computerSkills
89
     * @return $this
90
     */
91
    public function setComputerSkills($computerSkills)
92
    {
93
        $this->computerSkills = $computerSkills;
94
        return $this;
95
    }
96
97
    /**
98
     * @return ArrayCollection
99
     */
100
    public function getComputerSkills()
101
    {
102
        return $this->computerSkills;
103
    }
104
}
105