public function testHas()
 {
     $container = new FilterContainer();
     $container->add('foo', 'f.bar');
     $this->assertTrue($container->has('foo'));
     $this->assertFalse($container->has('bar'));
 }
 /**
  * Add a filter to the filter container
  *
  * @param string $key   Key
  * @param string $field Field
  * @param string $type  Filter type
  *
  * @return Paginator
  */
 public function addFilter($key, $field, $type = null)
 {
     $this->filters->add($key, $field, $type);
     return $this;
 }