khanat-opennel-code/code/web/app/app_achievements/class/Node_trait.php
SirCotare ad0bbe922f #1470 base class update; AVL trees added; some cleanup
--HG--
branch : gsoc2012-achievements
2012-07-01 20:04:01 +02:00

31 lines
No EOL
451 B
PHP

<?php
trait Node {
protected $idx;
protected $id;
protected $parent;
final function getID() {
return $this->id;
}
final function getIdx() {
return $this->idx;
}
final function getParent() {
return $this->parent;
}
final function setIdx($i) {
$this->idx = $i;
}
final function setID($id) {
$this->id = $id;
}
final function setParent($p) {
$this->parent = $p;
}
}
?>