Hoa central
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Hoa\Graph\SimpleNode Class Reference
Inheritance diagram for Hoa\Graph\SimpleNode:

Public Member Functions

 __construct ($nodeId, $nodeValue=null)
 
 setNodeValue ($nodeValue=null)
 
 getNodeId ()
 
 getNodeValue ()
 

Protected Member Functions

 setNodeId ($nodeId)
 

Protected Attributes

 $nodeId = null
 
 $nodeValue = null
 

Detailed Description

Class .

It's just a simple node demo (may be used for example and test).

Definition at line 47 of file SimpleNode.php.

Constructor & Destructor Documentation

Hoa\Graph\SimpleNode::__construct (   $nodeId,
  $nodeValue = null 
)

Build a node that contains a string.

Parameters
string$nodeIdThe node ID.
string$nodeValueThe node value.
Returns
void

Definition at line 72 of file SimpleNode.php.

73  {
74  $this->setNodeId($nodeId);
75  $this->setNodeValue($nodeValue);
76 
77  return;
78  }
setNodeValue($nodeValue=null)
Definition: SimpleNode.php:100

Here is the call graph for this function:

Member Function Documentation

Hoa\Graph\SimpleNode::getNodeId ( )

Get node ID, must be implement because of interface.

Returns
string

Implements Hoa\Graph\IGraph\Node.

Definition at line 113 of file SimpleNode.php.

114  {
115  return $this->nodeId;
116  }
Hoa\Graph\SimpleNode::getNodeValue ( )

Get node value.

Returns
string

Definition at line 123 of file SimpleNode.php.

124  {
125  return $this->nodeValue;
126  }
Hoa\Graph\SimpleNode::setNodeId (   $nodeId)
protected

Set node ID.

Parameters
string$nodeIdThe node ID.
Returns
string

Definition at line 86 of file SimpleNode.php.

87  {
88  $old = $this->nodeId;
89  $this->nodeId = $nodeId;
90 
91  return $old;
92  }

Here is the caller graph for this function:

Hoa\Graph\SimpleNode::setNodeValue (   $nodeValue = null)

Set node value.

Parameters
string$nodeValueThe node value.
Returns
string

Definition at line 100 of file SimpleNode.php.

101  {
102  $old = $this->nodeValue;
103  $this->nodeValue = $nodeValue;
104 
105  return $old;
106  }

Here is the caller graph for this function:

Member Data Documentation

Hoa\Graph\SimpleNode::$nodeId = null
protected

Definition at line 54 of file SimpleNode.php.

Hoa\Graph\SimpleNode::$nodeValue = null
protected

Definition at line 61 of file SimpleNode.php.


The documentation for this class was generated from the following file: