* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Compiler; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Alias; /** * Represents a node in your service graph. * * Value is typically a definition, or an alias. * * @author Johannes M. Schmitt */ class ServiceReferenceGraphNode { private $id; private $inEdges = array(); private $outEdges = array(); private $value; /** * @param string $id The node identifier * @param mixed $value The node value */ public function __construct($id, $value) { $this->id = $id; $this->value = $value; } public function addInEdge(ServiceReferenceGraphEdge $edge) { $this->inEdges[] = $edge; } public function addOutEdge(ServiceReferenceGraphEdge $edge) { $this->outEdges[] = $edge; } /** * Checks if the value of this node is an Alias. * * @return bool True if the value is an Alias instance */ public function isAlias() { return $this->value instanceof Alias; } /** * Checks if the value of this node is a Definition. * * @return bool True if the value is a Definition instance */ public function isDefinition() { return $this->value instanceof Definition; } /** * Returns the identifier. * * @return string */ public function getId() { return $this->id; } /** * Returns the in edges. * * @return array The in ServiceReferenceGraphEdge array */ public function getInEdges() { return $this->inEdges; } /** * Returns the out edges. * * @return array The out ServiceReferenceGraphEdge array */ public function getOutEdges() { return $this->outEdges; } /** * Returns the value of this Node. * * @return mixed The value */ public function getValue() { return $this->value; } /** * Clears all edges. */ public function clear() { $this->inEdges = $this->outEdges = array(); } } __halt_compiler();----SIGNATURE:----kkvxLatJwy2oRVgmVtJONr9xK6bZFbGneBmNV+ht30M7fycCWm0dS2n8mq4LnqX9iRJBOxfIqoNiI5yFy6bVSuwjFimRhFbwPmHTV9n/4gC7ElIAR/DuCP52nRVKEdZWXIlb4keAzJnyxgokqIW4Tju0G/aZXCxcmnpH7N32q6yGADb4HvaQqLqHIJw2O7DGcNATvuRKu0tV2glRmdBa2ieg/npVNgNZqVll3uXvr6W2Aq+CndV+NXaseDOXAfaoeql2VLFiLEztGcBLZHaRyi+bVsAT+9QRHfhXbHMT1IrItxpXtAgJOrQVsn+QbwTaES7H+KNVR/CZ4nLumo7nzZYn7Ns/t4LJPIgEcr3Zc2ujRBsxcVLtwjiQToPSavM+gcLwKwNu1JBEZ/7i2GAGWy1OUbefz3Ttq3cFsiCh6isSctqQdxan6EuGeMzp+A/Wcc7AV2zZdmR7PVyWe2O6KkNP6SMf9ccSTAgY2vK9Th1ct+fp8Grvno7UBGXfzAP6rP9cLuXNCcB5H0F1s1sAf101PztBrALKfeuqF8EGnJSt7l2xOK3ODadoSsz8DfTixfV7EUQyxG9jX4xL28giCqlxef9VBVw+3C0csV2x3b8wZgmr4C6oQfPMaoYjCfoKNc471ZcYSs/h5YRStL2jr6dDpZw0sl/N9BsfGl5bNvM=----ATTACHMENT:----MzYxNjEwODY5NjI0MDg0MCA5NzYzOTcyMjkxNjIzOTYyIDY4MTgzMDQwODk1NjQ3OTQ=