User::setVideos()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use FOS\UserBundle\Model\User as BaseUser;
6
use Doctrine\Common\Collections\ArrayCollection;
7
8
/**
9
 * Video.
10
 */
11
class User extends BaseUser
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    private $firstName;
19
20
    private $lastName;
21
22
    private $videos;
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getFirstName()
28
    {
29
        return $this->firstName;
30
    }
31
32
    /**
33
     * @param mixed $firstName
34
     */
35
    public function setFirstName($firstName)
36
    {
37
        $this->firstName = $firstName;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getLastName()
44
    {
45
        return $this->lastName;
46
    }
47
48
    /**
49
     * @param mixed $lastName
50
     */
51
    public function setLastName($lastName)
52
    {
53
        $this->lastName = $lastName;
54
    }
55
56
    /**
57
     * @return ArrayCollection
58
     */
59
    public function getVideos()
60
    {
61
        return $this->videos;
62
    }
63
64
    /**
65
     * @param ArrayCollection $videos
66
     */
67
    public function setVideos($videos)
68
    {
69
        $this->videos = $videos;
70
    }
71
72
    public function __construct()
73
    {
74
        parent::__construct();
75
        $this->videos = new ArrayCollection();
76
    }
77
}
78