Example #1
0
 public function closure(callable $closure)
 {
     $rows = new Rows($this);
     $cursor = $this->get();
     foreach ($cursor as $row) {
         $check = call_user_func_array($closure, [$this, $row]);
         if ($check) {
             $rows->add($row);
         }
     }
     return $rows;
 }
 /**
  * @param DataAccessObjectFactory $factory
  */
 public function __construct(\Parm\DataAccessObjectFactory $factory)
 {
     parent::__construct($factory);
 }