Neoxygen\NeoClient\Formatter\Result::getSingleNodeByLabel PHP Метод

getSingleNodeByLabel() публичный Метод

Returns a single node for a given label.
public getSingleNodeByLabel ( string $label ) : Neoxygen\NeoClient\Formatter\Node | null
$label string The label to match for
Результат Neoxygen\NeoClient\Formatter\Node | null The Node or null if not node found matching the label
    public function getSingleNodeByLabel($label)
    {
        foreach ($this->nodes as $node) {
            if ($node->hasLabel($label)) {
                return $node;
            }
        }
        return;
    }