'logging_before', 'args' => $args]; } public function after(object|string $target, mixed $result): mixed { self::$logs[] = ['type' => 'logging_after', 'result' => $result]; return $result; } public static function clearLogs(): void { self::$logs = []; } }