Passed
Push — master ( 3519d2...fb2019 )
by Anthony
02:42
created

Navigation::setModule()   A

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 Ribs\RibsAdminBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Navigation
9
 *
10
 * @ORM\Table(name="navigation", indexes={@ORM\Index(name="fk_navigation_page1_idx", columns={"id_page"}),
11
 *     @ORM\Index(name="fk_navigation_module1_idx", columns={"id_module"})})
12
 * @ORM\Entity(repositoryClass="Ribs\RibsAdminBundle\Repository\NavigationRepository")
13
 */
14
class Navigation
15
{
16
	/**
17
	 * @var integer
18
	 *
19
	 * @ORM\Column(name="id", type="integer", nullable=false)
20
	 * @ORM\Id
21
	 * @ORM\GeneratedValue(strategy="IDENTITY")
22
	 */
23
	private $id;
24
	
25
	/**
26
	 * @var boolean
27
	 *
28
	 * @ORM\Column(name="order", type="boolean", nullable=false)
29
	 */
30
	private $order;
31
	
32
	/**
33
	 * @var \Module
0 ignored issues
show
Bug introduced by
The type Module was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
34
	 *
35
	 * @ORM\ManyToOne(targetEntity="Module")
36
	 * @ORM\JoinColumns({
37
	 *   @ORM\JoinColumn(name="id_module", referencedColumnName="id", nullable=true)
38
	 * })
39
	 */
40
	private $module;
41
	
42
	/**
43
	 * @var \Page
44
	 *
45
	 * @ORM\ManyToOne(targetEntity="Page")
46
	 * @ORM\JoinColumns({
47
	 *   @ORM\JoinColumn(name="id_page", referencedColumnName="id", nullable=true)
48
	 * })
49
	 */
50
	private $page;
51
	
52
	/**
53
	 * @return int
54
	 */
55
	public function getId(): int
56
	{
57
		return $this->id;
58
	}
59
	
60
	/**
61
	 * @param int $id
62
	 */
63
	public function setId(int $id)
64
	{
65
		$this->id = $id;
66
	}
67
	
68
	/**
69
	 * @return bool
70
	 */
71
	public function isOrder(): bool
72
	{
73
		return $this->order;
74
	}
75
	
76
	/**
77
	 * @param bool $order
78
	 */
79
	public function setOrder(bool $order)
80
	{
81
		$this->order = $order;
82
	}
83
	
84
	/**
85
	 * @return \Module
86
	 */
87
	public function getModule(): \Module
88
	{
89
		return $this->module;
90
	}
91
	
92
	/**
93
	 * @param \Module $module
94
	 */
95
	public function setModule(\Module $module)
96
	{
97
		$this->module = $module;
98
	}
99
	
100
	/**
101
	 * @return \Page
102
	 */
103
	public function getPage(): \Page
104
	{
105
		return $this->page;
106
	}
107
	
108
	/**
109
	 * @param \Page $page
110
	 */
111
	public function setPage(\Page $page)
112
	{
113
		$this->page = $page;
114
	}
115
	
116
}
117
118