* @link https://getkirby.com * @copyright Bastian Allgeier * @license https://getkirby.com/license */ class Query extends BaseQuery { /** * Intercepts the chain of segments called * on each other by replacing objects with * their corresponding Interceptor which * handles blocking calls to restricted methods */ public function intercept(mixed $result): mixed { return is_object($result) ? Interceptor::replace($result): $result; } }