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