SVN
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * @package HatenaSyntax |
|---|
| 4 | * @author anatoo<anatoo@nequal.jp> |
|---|
| 5 | * @license http://www.opensource.org/licenses/mit-license.php MIT License |
|---|
| 6 | * @version $Id: Node.php 658 2009-04-12 07:47:13Z anatoo $ |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | class HatenaSyntax_Node |
|---|
| 10 | { |
|---|
| 11 | protected $type, $data = array(); |
|---|
| 12 | function __construct($type, $data) |
|---|
| 13 | { |
|---|
| 14 | $this->type = $type; |
|---|
| 15 | $this->data = $data; |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | function getType() |
|---|
| 19 | { |
|---|
| 20 | return $this->type; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | function getData() |
|---|
| 24 | { |
|---|
| 25 | return $this->data; |
|---|
| 26 | } |
|---|
| 27 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.