public function getRealDirection($direction)
    {
        if ($direction == 'in' || $direction == 'out')
        {
            $direction = ucfirst($direction);

        } elseif ($direction == 'any')
        {
            $direction = 'All';

        } else
        {
            throw new UnknownDirectionException($direction);
        }

        $direction = "Direction". $direction;

        return constant("Everyman\Neo4j\Relationship::". $direction);
    }
public function getRealDirection($direction)
    {
        if ($direction == 'in' || $direction == 'out')
        {
            $direction = ucfirst($direction);

        } elseif ($direction == 'any')
        {
            $direction = 'All';

        } else
        {
            throw new UnknownDirectionException($direction);
        }

        $direction = "Direction". $direction;

        return constant("Everyman\Neo4j\Relationship::". $direction);
    }
public function getRealDirection ( $ direction ) { if ( $ direction == 'in' || $ direction == 'out' ) { $ direction = ucfirst ( $ direction ) ; } elseif ( $ direction == 'any' ) { $ direction = 'All' ; } else { throw new UnknownDirectionException ( $ direction ) ; } $ direction = "Direction" . $ direction ; return constant ( "Everyman\Neo4j\Relationship::" . $ direction ) ; }
Get the direction value from the Neo4j
client according to the direction set on
the inheriting class,

@param  string $direction
@return string

@throws UnknownDirectionException If the specified $direction is not one of in, out or inout
Get the direction value from the Neo4j client according to the direction set on the inheriting class