public function isPair()
    {
        if (0 === strpos(trim($this->text), '#')) {
            return false;
        }
        
        $pieces = explode('=', $this->text, 2);
        $pieces = array_map('trim', $pieces);

        return 2 === count($pieces);
    }
public function isPair()
    {
        if (0 === strpos(trim($this->text), '#')) {
            return false;
        }
        
        $pieces = explode('=', $this->text, 2);
        $pieces = array_map('trim', $pieces);

        return 2 === count($pieces);
    }
public function isPair ( ) { if ( 0 === strpos ( trim ( $ this -> text ) , '#' ) ) { return false ; } $ pieces = explode ( '=' , $ this -> text , 2 ) ; $ pieces = array_map ( 'trim' , $ pieces ) ; return 2 === count ( $ pieces ) ; }
Whether or not the text is a key=value pair.

@return bool
Whether or not the text is a key = value pair .