Pinq\ICollection::where PHP Метод

where() публичный Метод

{@inheritDoc}
public where ( callable $predicate ) : pinq\ICollection
$predicate callable
Результат pinq\ICollection
    public function where(callable $predicate);

Usage Example

Пример #1
0
 /**
  * @dataProvider oneToTen
  */
 public function testThatClearRemovesAllScopedItems(\Pinq\ICollection $collection, array $data)
 {
     $collection->where(function ($i) {
         return $i <= 5;
     })->clear();
     $this->assertMatches($collection, [5 => 6, 6 => 7, 7 => 8, 8 => 9, 9 => 10]);
 }
All Usage Examples Of Pinq\ICollection::where