composer package updates
[openemr.git] / vendor / symfony / dependency-injection / Compiler / ServiceReferenceGraphEdge.php
blob7e8cf812f7082b499a57fa8a5fc8719d4aab4e7a
1 <?php
3 /*
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;
14 /**
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
23 private $sourceNode;
24 private $destNode;
25 private $value;
27 /**
28 * @param ServiceReferenceGraphNode $sourceNode
29 * @param ServiceReferenceGraphNode $destNode
30 * @param mixed $value
32 public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null)
34 $this->sourceNode = $sourceNode;
35 $this->destNode = $destNode;
36 $this->value = $value;
39 /**
40 * Returns the value of the edge.
42 * @return string
44 public function getValue()
46 return $this->value;
49 /**
50 * Returns the source node.
52 * @return ServiceReferenceGraphNode
54 public function getSourceNode()
56 return $this->sourceNode;
59 /**
60 * Returns the destination node.
62 * @return ServiceReferenceGraphNode
64 public function getDestNode()
66 return $this->destNode;