mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 08:06:13 +00:00
22 lines
334 B
PHP
22 lines
334 B
PHP
|
<?php
|
||
|
trait Node {
|
||
|
protected $id;
|
||
|
protected $parent;
|
||
|
|
||
|
final function getID() {
|
||
|
return $this->id;
|
||
|
}
|
||
|
|
||
|
final function getParent() {
|
||
|
return $this->parent;
|
||
|
}
|
||
|
|
||
|
final protected function setID($id) {
|
||
|
$this->id = $id;
|
||
|
}
|
||
|
|
||
|
final protected function setParent($p) {
|
||
|
$this->parent = $p;
|
||
|
}
|
||
|
}
|
||
|
?>
|