fix: Определения типов
This commit is contained in:
parent
9f6fd74b17
commit
dd74a97894
28 changed files with 334 additions and 249 deletions
|
|
@ -155,7 +155,10 @@ class Path
|
|||
}
|
||||
|
||||
// Сравнение двух путей на равентство
|
||||
public function equal($path/*: Path*/)
|
||||
/**
|
||||
* @param Path $path
|
||||
*/
|
||||
public function equal($path)
|
||||
{
|
||||
$count = count($this->path);
|
||||
if ($count == count($path->path)) {
|
||||
|
|
@ -199,11 +202,11 @@ class Path
|
|||
/**
|
||||
* Проверяет является ли папка родительской для другой папки
|
||||
*
|
||||
* @parma Path $path
|
||||
* @param Path $path
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function isParent($path/*: Path*/)
|
||||
public function isParent($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