* Portions created by the Initial Developer are Copyright (C) 2008-2025 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Mark J Crane * Tim Fry */ /** * * @author Tim Fry */ interface filter { /** * Uses the __invoke magic method to create a filter * There are three possible return values for a filter: * 1. True - Passed * 2. False - Failed * 3. null - Invalid * @param string $key * @param mixed $value * @return bool|null */ public function __invoke(string $key, $value): ?bool; }