khanat-code-old/code/web/app/app_achievements/class/Node_abstract.php

32 lines
No EOL
523 B
PHP

<?php
abstract class Node {
/*---------------------------
This class provides basic functionality common to nodes.
Every node has an id and a parent.
---------------------------*/
protected $id;
protected $parent;
function Node() {
}
final function getID() {
return $this->id;
}
final function getParent() {
return $this->parent;
}
final function setID($id) {
$this->id = $id;
}
final function setParent($p) {
$this->parent = $p;
}
}
?>