/**
  * @dataProvider Repository
  * @expectedException Azera\Component\Queryable\NodeNotFoundException
  */
 public function testQuickAccessNodeNotFoundException(array $users)
 {
     $users = new Queryable($users);
     $users->getWithException('3.age');
 }
Esempio n. 2
0
 /**
  * Get Intersect of two sequence
  *
  * @param array|Queryable $items 
  * @return Queryable
  */
 public function Intersect($items)
 {
     return $this->getClone()->setRepository(array_intersect($this->repository, $items instanceof Queryable ? $items->toArray() : $items));
 }