src/Update/Updater.php
public function getUpdates($starting_version, $ending_version = NULL) {
    if (!$ending_version) {
      $ending_version = $this->getLatestUpdateMethodVersion();
    }

    $updates = [];
    $update_methods = $this->getAllUpdateMethods();

    /**
     * @var string $method_name
     * @var Update $metadata
     */
    foreach ($update_methods as $method_name => $metadata) {
      $version = $metadata->version;

      if (($version > $starting_version) && $version <= $ending_version) {
        $updates[$method_name] = $metadata;
      }
    }

    return $updates;
  }
public function getUpdates($starting_version, $ending_version = NULL) {
    if (!$ending_version) {
      $ending_version = $this->getLatestUpdateMethodVersion();
    }

    $updates = [];
    $update_methods = $this->getAllUpdateMethods();

    /**
     * @var string $method_name
     * @var Update $metadata
     */
    foreach ($update_methods as $method_name => $metadata) {
      $version = $metadata->version;

      if (($version > $starting_version) && $version <= $ending_version) {
        $updates[$method_name] = $metadata;
      }
    }

    return $updates;
  }
public function getUpdates ( $ starting_version , $ ending_version = NULL ) { if ( ! $ ending_version ) { $ ending_version = $ this -> getLatestUpdateMethodVersion ( ) ; } $ updates = [ ] ; $ update_methods = $ this -> getAllUpdateMethods ( ) ; /**
     * @var string $method_name
     * @var Update $metadata
     */ foreach ( $ update_methods as $ method_name => $ metadata ) { $ version = $ metadata -> version ; if ( ( $ version > $ starting_version ) && $ version <= $ ending_version ) { $ updates [ $ method_name ] = $ metadata ; } } return $ updates ; }
Gets all applicable updates for a given version delta.

@param string $starting_version
The starting version, e.g., 8005000.

@param string $ending_version
The ending version, e.g., 8005001.

@return array
An array of applicable update methods, keyed by method name. Each row
contains the metadata from the Update annotation.
Gets all applicable updates for a given version delta .