Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraphNode.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
36 { | 36 { |
37 $this->id = $id; | 37 $this->id = $id; |
38 $this->value = $value; | 38 $this->value = $value; |
39 } | 39 } |
40 | 40 |
41 /** | |
42 * Adds an in edge to this node. | |
43 * | |
44 * @param ServiceReferenceGraphEdge $edge | |
45 */ | |
46 public function addInEdge(ServiceReferenceGraphEdge $edge) | 41 public function addInEdge(ServiceReferenceGraphEdge $edge) |
47 { | 42 { |
48 $this->inEdges[] = $edge; | 43 $this->inEdges[] = $edge; |
49 } | 44 } |
50 | 45 |
51 /** | |
52 * Adds an out edge to this node. | |
53 * | |
54 * @param ServiceReferenceGraphEdge $edge | |
55 */ | |
56 public function addOutEdge(ServiceReferenceGraphEdge $edge) | 46 public function addOutEdge(ServiceReferenceGraphEdge $edge) |
57 { | 47 { |
58 $this->outEdges[] = $edge; | 48 $this->outEdges[] = $edge; |
59 } | 49 } |
60 | 50 |
115 */ | 105 */ |
116 public function getValue() | 106 public function getValue() |
117 { | 107 { |
118 return $this->value; | 108 return $this->value; |
119 } | 109 } |
110 | |
111 /** | |
112 * Clears all edges. | |
113 */ | |
114 public function clear() | |
115 { | |
116 $this->inEdges = $this->outEdges = array(); | |
117 } | |
120 } | 118 } |