Feed::getReference()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of Fabrica.
5
 *
6
 * (c) Alexandre Salomé <[email protected]>
7
 * (c) Julien DIDIER <[email protected]>
8
 *
9
 * This source file is subject to the GPL license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Fabrica\Models\Code;
14
15
use Doctrine\Common\Collections\ArrayCollection;
16
17
use Pedreiro\Models\Base;
18
19
/**
20
 * @author Julien DIDIER <[email protected]>
21
 */
22
class Feed
23
{
24
    protected $id;
25
    protected $project;
26
    protected $reference;
27
    protected $messages;
28
29
    public function __construct(Project $project, $reference = null)
30
    {
31
        $this->project   = $project;
32
        $this->reference = $reference;
33
    }
34
35
    public function getId()
36
    {
37
        return $id;
0 ignored issues
show
Bug introduced by
The variable $id does not exist. Did you forget to declare it?

This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.

Loading history...
38
    }
39
40
    public function getProject()
41
    {
42
        return $this->project;
43
    }
44
45
    public function getReference()
46
    {
47
        return $this->reference;
48
    }
49
50
    public function getMessages()
51
    {
52
        return $this->messages;
53
    }
54
}
55