public function getLabel()
    {
        if (empty($this->labels)) {
            return;
        }
        reset($this->labels);

        return current($this->labels);
    }
public function getLabel()
    {
        if (empty($this->labels)) {
            return;
        }
        reset($this->labels);

        return current($this->labels);
    }
public function getLabel ( ) { if ( empty ( $ this -> labels ) ) { return ; } reset ( $ this -> labels ) ; return current ( $ this -> labels ) ; }
Used when only one label is expected.

@return string|null the label of the node
Used when only one label is expected .