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

Breadcrumb

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

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\Manifest
View 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

API Navigation

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