PHP Class Hal\Component\BusinessRule\Collection

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Inheritance: implements IteratorAggregate, implements Countable
Afficher le fichier Open project: Halleck45/DesignPatternDetector Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $datas ) Constructor
count ( ) : integer Get number of valid items
first ( ) : mixed
getIterator ( ) : ArrayIterator | Traversable Get datas (implementation of IteratorAggregate)
push ( $item ) Push item in the stack
where ( $clause ) Add a where clause ->where('x => x > 5')

Méthodes protégées

Méthode Description
applyFilter ( ) : void Filter datas

Method Details

__construct() public méthode

Constructor
public __construct ( array $datas )
$datas array

applyFilter() protected méthode

Filter datas
protected applyFilter ( ) : void
Résultat void

count() public méthode

Get number of valid items
public count ( ) : integer
Résultat integer

first() public méthode

public first ( ) : mixed
Résultat mixed

getIterator() public méthode

Get datas (implementation of IteratorAggregate)

push() public méthode

Push item in the stack
public push ( $item )
$item

where() public méthode

Add a where clause ->where('x => x > 5')
public where ( $clause )
$clause