namespace Symfony\Component\DependencyInjection\Compiler;
-use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Alias;
+use Symfony\Component\DependencyInjection\Definition;
/**
* Represents a node in your service graph.
$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();
+ }
}