$this->value = $value;
}
- /**
- * Adds an in edge to this node.
- *
- * @param ServiceReferenceGraphEdge $edge
- */
public function addInEdge(ServiceReferenceGraphEdge $edge)
{
$this->inEdges[] = $edge;
}
- /**
- * Adds an out edge to this node.
- *
- * @param ServiceReferenceGraphEdge $edge
- */
public function addOutEdge(ServiceReferenceGraphEdge $edge)
{
$this->outEdges[] = $edge;
{
return $this->value;
}
+
+ /**
+ * Clears all edges.
+ */
+ public function clear()
+ {
+ $this->inEdges = $this->outEdges = array();
+ }
}