protected static function getEdgeItself(
        ParticleInterface $particle, 
        array $pack,
        string $name,
        Direction $direction,
        bool $singular = false
        ): array
    {
        // $name = strtolower($name); // this is now taken care of beforehand.
        $direction = (string) $direction;
        $cargo = $pack[$direction];
        $haystack = $singular ? "callable_edge_singularLabel_class_pairs" : "callable_edge_label_class_pairs";
        $edges = $particle->edges()->$direction($cargo->$haystack[$name]);
        return array_values(iterator_to_array($edges));
    }
protected static function getEdgeItself(
        ParticleInterface $particle, 
        array $pack,
        string $name,
        Direction $direction,
        bool $singular = false
        ): array
    {
        // $name = strtolower($name); // this is now taken care of beforehand.
        $direction = (string) $direction;
        $cargo = $pack[$direction];
        $haystack = $singular ? "callable_edge_singularLabel_class_pairs" : "callable_edge_label_class_pairs";
        $edges = $particle->edges()->$direction($cargo->$haystack[$name]);
        return array_values(iterator_to_array($edges));
    }
protected static function getEdgeItself ( ParticleInterface $ particle , array $ pack , string $ name , Direction $ direction , bool $ singular = false ) : array { // $name = strtolower($name); // this is now taken care of beforehand. $ direction = ( string ) $ direction ; $ cargo = $ pack [ $ direction ] ; $ haystack = $ singular ? "callable_edge_singularLabel_class_pairs" : "callable_edge_label_class_pairs" ; $ edges = $ particle -> edges ( ) -> $ direction ( $ cargo -> $ haystack [ $ name ] ) ; return array_values ( iterator_to_array ( $ edges ) ) ; }
Getter Catcher for Edge Callables In and Out

@param ParticleInterface $particle The particle that this handler is associated with.
@param array  $pack Holds cargo variables extracted by loaders.
@param string $name The edge node label in plural.
@param Direction  $direction The direction of the edge adjacent nodes to look up.
@param bool $singular Is this for a singular call

@return array The edge nodes.
Getter Catcher for Edge Callables In and Out