4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Compiler
;
15 * Represents an edge in your service graph.
17 * Value is typically a reference.
19 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
21 class ServiceReferenceGraphEdge
28 * @param ServiceReferenceGraphNode $sourceNode
29 * @param ServiceReferenceGraphNode $destNode
30 * @param string $value
32 public function __construct(ServiceReferenceGraphNode
$sourceNode, ServiceReferenceGraphNode
$destNode, $value = null)
34 $this->sourceNode
= $sourceNode;
35 $this->destNode
= $destNode;
36 $this->value
= $value;
40 * Returns the value of the edge.
42 * @return ServiceReferenceGraphNode
44 public function getValue()
50 * Returns the source node.
52 * @return ServiceReferenceGraphNode
54 public function getSourceNode()
56 return $this->sourceNode
;
60 * Returns the destination node.
62 * @return ServiceReferenceGraphNode
64 public function getDestNode()
66 return $this->destNode
;