public function equals(?Text $other = null): bool {
    if($other === null) {
      return false;
    }

    return $this->raw === (string)$other;
  }
public function equals(?Text $other = null): bool {
    if($other === null) {
      return false;
    }

    return $this->raw === (string)$other;
  }
public function equals ( ? Text $ other = null ) : bool { if ( $ other === null ) { return false ; } return $ this -> raw === ( string ) $ other ; }
Checks if two Text objects are equal

@param  Text|null  $other

@return  bool  True if the objects are equal, false otherwise
Checks if two Text objects are equal