* * 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:----T2EiQMRX7lKe4uj8WT5JhbC0o41vJ6HsxitoKq0BkVjFFbeGcoJ5vC6mGwY08fnzlUPQlLyeWRMezQ0wtiCcjs9DZlUvovoQbvuZ3IzqN3NvmfhjQ0illdGMfsKJ1vkZ92JgCSCBaL93cjTB+ghX6QTX4uxYYr0mHmNWFgb9ivxudrY5mgpmCIqEHgKzv9rxMffBqr14/wqdMQ2/TcU68rniQjXkfajz879fsLN5YUvMVR5CNworKzwRW38rlfa7Bs5P51gR4BUA0MuYX/siYKZ9Yr7viKPAg7xEjNFpr2Z0b2THDOahxCBDtKQYaAzRyNRUPFtkYfrVJZomepOEvTg7R7wR47pSgO30VGFazYu/8N7dHy7pBHXwWMoLeYHFBELiVlG83poEMcwaiAuBT0v61LvDrRz5eU56RX3v4PzFPi2xd4giQwGyk/uh3j2si+niPLYBvFCkP9+rUNXlO7KJoVuxK4dUw0zFnvoV5R5Dc1i7uBC2A5C3oB7hy9jg76cbKVfhPd2x9Na/SFyKjefqN9vBEh8vhhmTtw96fD5ieVf1C9cF7n6FBBqLPEGEaLQ/FgPNKY6RlF3Hl9xqBm00GAGZ1vYFUWD/dwNr5kjM83ELsTe4triHpNeN8whveqJcF7mjoq2IrDF4VYiMzOBlzrg0mT/SRIzI0qv4kZU=----ATTACHMENT:----ODE2NDQ1MzU1MjI2NDMxNCA2NTEyMzM1NDIxNzcxMTAwIDk2NDY4OTI2NDE4MTExOA==