AuthorCollection
in package
implements
Countable, IteratorAggregate
Interfaces, Classes, Traits and Enums
- Countable
- IteratorAggregate
Table of Contents
- $authors : array<string|int, Author>
- add() : void
- count() : int
- getAuthors() : array<string|int, Author>
- getIterator() : AuthorCollectionIterator
Properties
$authors
private
array<string|int, Author>
$authors
= []
Methods
add()
public
add(Author $author) : void
Parameters
- $author : Author
Return values
void —count()
public
count() : int
Return values
int —getAuthors()
public
getAuthors() : array<string|int, Author>
Return values
array<string|int, Author> —getIterator()
public
getIterator() : AuthorCollectionIterator