| 1 | <?php |
||
| 15 | abstract class BaseNode |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var boolean |
||
| 19 | */ |
||
| 20 | protected $complete; |
||
| 21 | /** |
||
| 22 | * Whether this item has already been initialized |
||
| 23 | */ |
||
| 24 | public abstract function isDiscovered(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @since $VID:$ |
||
| 28 | * @return boolean |
||
| 29 | */ |
||
| 30 | public abstract function isComplete(); |
||
| 31 | |||
| 32 | public abstract function discover(); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @since $VID:$ |
||
| 36 | * @param $work_to_do |
||
| 37 | * @return int units of work done |
||
| 38 | */ |
||
| 39 | public function visit($work_to_do){ |
||
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * @since $VID:$ |
||
| 52 | * @param $work_to_do |
||
| 53 | * @return int units of work done |
||
| 54 | */ |
||
| 55 | protected abstract function work($work_to_do); |
||
| 56 | } |
||
| 57 | // End of file BaseNode.php |
||
| 59 |