| 1 | <?php |
||
| 5 | class GraphNode { |
||
| 6 | private $id; |
||
| 7 | private $label = []; |
||
| 8 | private $parent = []; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var string $id : Node ID including namespace |
||
| 12 | */ |
||
| 13 | 1 | public function __construct( $id ) { |
|
| 16 | |||
| 17 | /** |
||
| 18 | * @param integer $labelIndex : label index |
||
| 19 | * @param string $label : a label, e.g. Display Title, used instead of $id. Left align (\l) from label2 onwards |
||
| 20 | */ |
||
| 21 | 1 | public function addLabel( $labelIndex, $label ) { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @var string $predicate : the "predicate" linking an object to a subject |
||
| 35 | * @var srting $object : the object, linked to this node |
||
| 36 | */ |
||
| 37 | 1 | public function addParentNode( $predicate, $object ) { |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return array Of parent nodes |
||
| 46 | */ |
||
| 47 | 1 | public function getParentNode() { |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return array: of labels |
||
|
|
|||
| 53 | */ |
||
| 54 | public function getLabels() { |
||
| 57 | |||
| 58 | 1 | public function getLabel( $labelIndex ) { |
|
| 61 | |||
| 62 | 1 | public function getID() { |
|
| 65 | |||
| 66 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.