Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Version.php

function Version::equals

File

vendor/phar-io/version/src/Version.php, line 70

Class

Version

Namespace

PharIo\Version

Code

public function equals(Version $other) : bool {
    if ($this->getVersionString() !== $other->getVersionString()) {
        return false;
    }
    if ($this->hasBuildMetaData() !== $other->hasBuildMetaData()) {
        return false;
    }
    if ($this->hasBuildMetaData() && $other->hasBuildMetaData() && !$this->getBuildMetaData()
        ->equals($other->getBuildMetaData())) {
        return false;
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal