It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
16
$this->communes = new Sequence();
17
}
18
19
public function getName()
20
{
21
return $this->name;
22
}
23
24
public function setName($name)
25
{
26
$this->name = $name;
27
return $this;
28
}
29
30
public function getCode()
31
{
32
return $this->code;
33
}
34
35
public function setCode($code)
36
{
37
$this->code = $code;
38
return $this;
39
}
40
41
public function getRegion()
42
{
43
return $this->region;
44
}
45
46
public function setRegion(Region $region)
47
{
48
$this->region = $region;
49
return $this;
50
}
51
52
public function getCommunes()
53
{
54
return $this->communes;
55
}
56
57
public function addCommune(Commune $commune) {
58
$this->communes->add($commune);
59
}
60
61
public function setCommunes(SequenceInterface $communes)
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.