43 lines
620 B
PHP
43 lines
620 B
PHP
<?php
|
|
|
|
class Dir
|
|
{
|
|
private $id = 0;
|
|
|
|
private $name = '';
|
|
|
|
private $parent = 0;
|
|
|
|
public function __construct($id, $name, $parent)
|
|
{
|
|
$this->id = $id;
|
|
$this->name = $name;
|
|
$this->parent = $parent;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getId() {
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getName() {
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getParent() {
|
|
return $this->parent;
|
|
}
|
|
|
|
public function isRoot()
|
|
{
|
|
return false;
|
|
}
|
|
} |