41 lines
574 B
PHP
41 lines
574 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
class File
|
||
|
|
{
|
||
|
|
|
||
|
|
private $id;
|
||
|
|
|
||
|
|
private $name;
|
||
|
|
|
||
|
|
private $url;
|
||
|
|
|
||
|
|
private $parent;
|
||
|
|
|
||
|
|
public function __construct($id, $name, $url, $parent=0)
|
||
|
|
{
|
||
|
|
$this->id = $id;
|
||
|
|
$this->name = $name;
|
||
|
|
$this->url = $url;
|
||
|
|
$this->parent = $parent;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getId()
|
||
|
|
{
|
||
|
|
return $this->id;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getName()
|
||
|
|
{
|
||
|
|
return $this->name;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getParent()
|
||
|
|
{
|
||
|
|
return $this->parent;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getUrl()
|
||
|
|
{
|
||
|
|
return $this->url;
|
||
|
|
}
|
||
|
|
}
|