class BundledComponentCollection
@template-implements IteratorAggregate<int,BundledComponent>
Hierarchy
- class \PharIo\Manifest\BundledComponentCollection implements \Countable, \IteratorAggregate
Expanded class hierarchy of BundledComponentCollection
File
-
vendor/
phar-io/ manifest/ src/ values/ BundledComponentCollection.php, line 18
Namespace
PharIo\ManifestView source
class BundledComponentCollection implements Countable, IteratorAggregate {
/** @var BundledComponent[] */
private $bundledComponents = [];
public function add(BundledComponent $bundledComponent) : void {
$this->bundledComponents[] = $bundledComponent;
}
/**
* @return BundledComponent[]
*/
public function getBundledComponents() : array {
return $this->bundledComponents;
}
public function count() : int {
return count($this->bundledComponents);
}
public function getIterator() : BundledComponentCollectionIterator {
return new BundledComponentCollectionIterator($this);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
BundledComponentCollection::$bundledComponents | private | property | @var BundledComponent[] |
BundledComponentCollection::add | public | function | |
BundledComponentCollection::count | public | function | |
BundledComponentCollection::getBundledComponents | public | function | |
BundledComponentCollection::getIterator | public | function |