Skip to content

Commit 2d2b973

Browse files
committed
PhpNamespace: changed order of methods
1 parent 4c11c7e commit 2d2b973

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/PhpGenerator/PhpNamespace.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ public function __construct($name = NULL)
4141
}
4242

4343

44-
/**
45-
* @return string
46-
*/
47-
public function getName()
48-
{
49-
return $this->name;
50-
}
51-
52-
5344
/**
5445
* @param string
5546
* @return self
@@ -62,11 +53,11 @@ public function setName($name)
6253

6354

6455
/**
65-
* @return bool
56+
* @return string
6657
*/
67-
public function getBracketedSyntax()
58+
public function getName()
6859
{
69-
return $this->bracketedSyntax;
60+
return $this->name;
7061
}
7162

7263

@@ -83,11 +74,11 @@ public function setBracketedSyntax($state = TRUE)
8374

8475

8576
/**
86-
* @return string[]
77+
* @return bool
8778
*/
88-
public function getUses()
79+
public function getBracketedSyntax()
8980
{
90-
return $this->uses;
81+
return $this->bracketedSyntax;
9182
}
9283

9384

@@ -128,6 +119,15 @@ public function addUse($name, $alias = NULL, &$aliasOut = NULL)
128119
}
129120

130121

122+
/**
123+
* @return string[]
124+
*/
125+
public function getUses()
126+
{
127+
return $this->uses;
128+
}
129+
130+
131131
/**
132132
* @param string
133133
* @return string
@@ -157,15 +157,6 @@ public function unresolveName($name)
157157
}
158158

159159

160-
/**
161-
* @return ClassType[]
162-
*/
163-
public function getClasses()
164-
{
165-
return $this->classes;
166-
}
167-
168-
169160
/**
170161
* @param string
171162
* @return ClassType
@@ -200,6 +191,15 @@ public function addTrait($name)
200191
}
201192

202193

194+
/**
195+
* @return ClassType[]
196+
*/
197+
public function getClasses()
198+
{
199+
return $this->classes;
200+
}
201+
202+
203203
/**
204204
* @return string PHP code
205205
*/

0 commit comments

Comments
 (0)