AuthorCollection
in package
implements
Countable, IteratorAggregate
Tags
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
Methods
- 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
count()
public
count() : int
Return values
intgetAuthors()
public
getAuthors() : array<string|int, Author>
Return values
array<string|int, Author>getIterator()
public
getIterator() : AuthorCollectionIterator