public function endsWith(Text $other): bool {
    return strrpos($this->raw, (string)$other, -$other->length) === ($this->length - $other->length);
  }
public function endsWith(Text $other): bool {
    return strrpos($this->raw, (string)$other, -$other->length) === ($this->length - $other->length);
  }
public function endsWith ( Text $ other ) : bool { return strrpos ( $ this -> raw , ( string ) $ other , - $ other -> length ) === ( $ this -> length - $ other -> length ) ; }
Checks if this Text object ends with another Text object

@param  Text  $other  The other text object

@return  bool  True if this Text object ends with the other Text object, false otherwise
Checks if this Text object ends with another Text object