Постфиксная запись типов вместо префиксной
This commit is contained in:
parent
04662a94df
commit
11370eecc9
33 changed files with 95 additions and 79 deletions
|
|
@ -160,7 +160,7 @@ class Path
|
|||
}
|
||||
|
||||
// Сравнение двух путей на равентство
|
||||
public function equal(/*.Path.*/ $path)
|
||||
public function equal($path/*: Path*/)
|
||||
{
|
||||
$count = count($this->path);
|
||||
if ($count == count($path->path)) {
|
||||
|
|
@ -205,7 +205,7 @@ class Path
|
|||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isParent(/*.Path.*/ $path)
|
||||
public function isParent($path/*: Path*/)
|
||||
{
|
||||
if (isset($this->url['host']) && isset($path->url['host'])
|
||||
&& ($this->url['host'] != $path->url['host'])) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue