public function getKey($offset = null)
    {
        if (null === $offset) {
            $offset = $this->offset;
        }

        if ((null !== ($op = $this->getId(--$offset)))
            && ((DocLexer::T_COLON === $op)
                || (DocLexer::T_EQUALS === $op))) {
            return $this->getValue(--$offset);
        }

        return null;
    }
public function getKey($offset = null)
    {
        if (null === $offset) {
            $offset = $this->offset;
        }

        if ((null !== ($op = $this->getId(--$offset)))
            && ((DocLexer::T_COLON === $op)
                || (DocLexer::T_EQUALS === $op))) {
            return $this->getValue(--$offset);
        }

        return null;
    }
public function getKey ( $ offset = null ) { if ( null === $ offset ) { $ offset = $ this -> offset ; } if ( ( null !== ( $ op = $ this -> getId ( -- $ offset ) ) ) && ( ( DocLexer :: T_COLON === $ op ) || ( DocLexer :: T_EQUALS === $ op ) ) ) { return $ this -> getValue ( -- $ offset ) ; } return null ; }
Returns the key for the value at the offset.

@param integer $offset The value's offset.

@return integer|string The key.
Returns the key for the value at the offset .