Skip to content

Commit

Permalink
Created the FiltratorInterface in preparation of using the library in…
Browse files Browse the repository at this point in the history
… the \Sirius\Forms library
  • Loading branch information
Adrian Miu committed Mar 29, 2014
1 parent 3648d55 commit 5d4d4da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filtration/Filtrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Sirius\Filtration\Utils;

class Filtrator
class Filtrator implements FiltratorInterface
{
// selector to specify that the filter is applied to the entire data set
const SELECTOR_ROOT = '/';
Expand Down
12 changes: 12 additions & 0 deletions src/Filtration/FiltratorInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Sirius\Filtration;

interface FiltratorInterface {

function add($selector, $callbackOrFilterName = null, $options = null, $recursive = false, $priority = 0);

function remove($selector, $callbackOrName = true);

function filter($data = array());
}

0 comments on commit 5d4d4da

Please sign in to comment.