comparison vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraphEdge.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 1fec387a4317
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\DependencyInjection\Compiler;
13
14 /**
15 * Represents an edge in your service graph.
16 *
17 * Value is typically a reference.
18 *
19 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
20 */
21 class ServiceReferenceGraphEdge
22 {
23 private $sourceNode;
24 private $destNode;
25 private $value;
26
27 /**
28 * @param ServiceReferenceGraphNode $sourceNode
29 * @param ServiceReferenceGraphNode $destNode
30 * @param string $value
31 */
32 public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null)
33 {
34 $this->sourceNode = $sourceNode;
35 $this->destNode = $destNode;
36 $this->value = $value;
37 }
38
39 /**
40 * Returns the value of the edge.
41 *
42 * @return string
43 */
44 public function getValue()
45 {
46 return $this->value;
47 }
48
49 /**
50 * Returns the source node.
51 *
52 * @return ServiceReferenceGraphNode
53 */
54 public function getSourceNode()
55 {
56 return $this->sourceNode;
57 }
58
59 /**
60 * Returns the destination node.
61 *
62 * @return ServiceReferenceGraphNode
63 */
64 public function getDestNode()
65 {
66 return $this->destNode;
67 }
68 }