You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
766 B
37 lines
766 B
<?php |
|
|
|
abstract class DojoBlock |
|
{ |
|
protected $package; |
|
protected $destroyed = false; |
|
public $start; |
|
public $end; |
|
|
|
public function __construct($package, $line_number = false, $position = false){ |
|
$this->package = $package; |
|
if($line_number !== false && $position !== false){ |
|
$this->setStart($line_number, $position); |
|
} |
|
} |
|
|
|
public function destroy() { |
|
} |
|
|
|
public function __destruct() { |
|
unset($this->package); |
|
unset($this->start); |
|
unset($this->end); |
|
} |
|
|
|
public function setStart($line_number, $position){ |
|
$this->start = array($line_number, $position); |
|
} |
|
|
|
protected function setEnd($line_number, $position){ |
|
$this->end = array($line_number, $position); |
|
} |
|
|
|
public abstract function build(); |
|
} |
|
|
|
?>
|