PHP Class KGzocha\Searcher\AbstractCollection

Author: Krzysztof Gzocha ([email protected])
Inheritance: implements Countable, implements IteratorAggregate
Afficher le fichier Open project: krzysztof-gzocha/searcher Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Traversable | array $items = [] )
count ( )
getIterator ( )

Méthodes protégées

Méthode Description
addItem ( mixed $item )
addNamedItem ( string $name, mixed $item )
getItems ( ) : array
getNamedItem ( string $name ) : mixed | null
isItemValid ( object $item ) : boolean

Private Methods

Méthode Description
checkItems ( array | Traversable $items )
isTraversable ( mixed $items )

Method Details

__construct() public méthode

public __construct ( Traversable | array $items = [] )
$items Traversable | array

addItem() protected méthode

protected addItem ( mixed $item )
$item mixed

addNamedItem() protected méthode

protected addNamedItem ( string $name, mixed $item )
$name string
$item mixed

count() public méthode

public count ( )

getItems() protected méthode

protected getItems ( ) : array
Résultat array

getIterator() public méthode

public getIterator ( )

getNamedItem() protected méthode

protected getNamedItem ( string $name ) : mixed | null
$name string
Résultat mixed | null

isItemValid() abstract protected méthode

abstract protected isItemValid ( object $item ) : boolean
$item object
Résultat boolean