Add tag filter. Move benchmark to another project

This commit is contained in:
Ivan Shalganov
2013-10-08 17:48:23 +04:00
parent 24f22f8f43
commit 6fec661ea7
23 changed files with 182 additions and 5310 deletions

View File

@@ -79,6 +79,11 @@ class Fenom
*/
public $filters = array();
/**
* @var callable[]
*/
public $tag_filters = array();
/**
* @var callable[]
*/
@@ -349,6 +354,22 @@ class Fenom
return $this->filters;
}
/**
* @param callable $cbcd
* @return self
*/
public function addTagFilter($cb)
{
$this->tag_filters[] = $cb;
return $this;
}
public function getTagFilters()
{
return $this->tag_filters;
}
/**
* Add modifier
*