public function search(SearchCondition\SearchConditionInterface $filter, SelectOrder\SelectOrderInterface $order = null)
	{
		if ( ! ($filter instanceof SearchCondition\ArraySearchCondition)) {
			throw new Exception\WrongInstance($filter, 'SearchCondition\ArraySearchCondition');
		}
		$filterClosure = $filter->getSearchClosure();

		$orderClosure = null;
		if ( ! \is_null($order)) {
			if ( ! ($order instanceof SelectOrder\ArraySelectOrder)) {
				throw new Exception\WrongInstance($order, 'SelectOrder\ArraySelectOrder');
			}
			$orderClosure = $order->getOrderClosure();
		}

		$result = $this->searchByClosure($filterClosure, $orderClosure);
		
		return $result;
	}
public function search(SearchCondition\SearchConditionInterface $filter, SelectOrder\SelectOrderInterface $order = null)
	{
		if ( ! ($filter instanceof SearchCondition\ArraySearchCondition)) {
			throw new Exception\WrongInstance($filter, 'SearchCondition\ArraySearchCondition');
		}
		$filterClosure = $filter->getSearchClosure();

		$orderClosure = null;
		if ( ! \is_null($order)) {
			if ( ! ($order instanceof SelectOrder\ArraySelectOrder)) {
				throw new Exception\WrongInstance($order, 'SelectOrder\ArraySelectOrder');
			}
			$orderClosure = $order->getOrderClosure();
		}

		$result = $this->searchByClosure($filterClosure, $orderClosure);
		
		return $result;
	}
public function search ( SearchCondition \ SearchConditionInterface $ filter , SelectOrder \ SelectOrderInterface $ order = null ) { if ( ! ( $ filter instanceof SearchCondition \ ArraySearchCondition ) ) { throw new Exception \ WrongInstance ( $ filter , 'SearchCondition\ArraySearchCondition' ) ; } $ filterClosure = $ filter -> getSearchClosure ( ) ; $ orderClosure = null ; if ( ! \ is_null ( $ order ) ) { if ( ! ( $ order instanceof SelectOrder \ ArraySelectOrder ) ) { throw new Exception \ WrongInstance ( $ order , 'SelectOrder\ArraySelectOrder' ) ; } $ orderClosure = $ order -> getOrderClosure ( ) ; } $ result = $ this -> searchByClosure ( $ filterClosure , $ orderClosure ) ; return $ result ; }
Perform the search in the array
@param SearchCondition\SearchConditionInterface $filter
@param SelectOrder\SelectOrderInterface $order
@return array
Perform the search in the array