* $composite->addFilter( * "servicelocator", * function ($property) { * list($class, $method) = explode('::', $property); * if ($method === 'getServiceLocator') { * return false; * } * return true; * }, * FilterComposite::CONDITION_AND * ); * * * @param string $name Index in the composite * @param callable|FilterInterface $filter */ public function addFilter(string $name, $filter, int $condition = FilterComposite::CONDITION_OR) : void; /** * Check whether a specific filter exists at key $name or not * * @param string $name Index in the composite */ public function hasFilter(string $name) : bool; /** * Remove a filter from the composition. * * To not extract "has" methods, you simply need to unregister it * * * $filterComposite->removeFilter('has'); * */ public function removeFilter(string $name) : void; }