Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraphEdge.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
23 private $sourceNode; | 23 private $sourceNode; |
24 private $destNode; | 24 private $destNode; |
25 private $value; | 25 private $value; |
26 private $lazy; | 26 private $lazy; |
27 private $weak; | 27 private $weak; |
28 private $byConstructor; | |
28 | 29 |
29 /** | 30 /** |
30 * @param ServiceReferenceGraphNode $sourceNode | 31 * @param ServiceReferenceGraphNode $sourceNode |
31 * @param ServiceReferenceGraphNode $destNode | 32 * @param ServiceReferenceGraphNode $destNode |
32 * @param mixed $value | 33 * @param mixed $value |
33 * @param bool $lazy | 34 * @param bool $lazy |
34 * @param bool $weak | 35 * @param bool $weak |
36 * @param bool $byConstructor | |
35 */ | 37 */ |
36 public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, $lazy = false, $weak = false) | 38 public function __construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, $lazy = false, $weak = false, $byConstructor = false) |
37 { | 39 { |
38 $this->sourceNode = $sourceNode; | 40 $this->sourceNode = $sourceNode; |
39 $this->destNode = $destNode; | 41 $this->destNode = $destNode; |
40 $this->value = $value; | 42 $this->value = $value; |
41 $this->lazy = $lazy; | 43 $this->lazy = $lazy; |
42 $this->weak = $weak; | 44 $this->weak = $weak; |
45 $this->byConstructor = $byConstructor; | |
43 } | 46 } |
44 | 47 |
45 /** | 48 /** |
46 * Returns the value of the edge. | 49 * Returns the value of the edge. |
47 * | 50 * |
89 */ | 92 */ |
90 public function isWeak() | 93 public function isWeak() |
91 { | 94 { |
92 return $this->weak; | 95 return $this->weak; |
93 } | 96 } |
97 | |
98 /** | |
99 * Returns true if the edge links with a constructor argument. | |
100 * | |
101 * @return bool | |
102 */ | |
103 public function isReferencedByConstructor() | |
104 { | |
105 return $this->byConstructor; | |
106 } | |
94 } | 107 } |