function UnpackCollection::valid

File

composer/Plugin/RecipeUnpack/UnpackCollection.php, line 59

Class

UnpackCollection
A collection with packages to unpack.

Namespace

Drupal\Composer\Plugin\RecipeUnpack

Code

public function valid() : bool {
    return current($this->packagesToUnpack) !== FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.