HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/plugins/font-awesome/includes/class-fontawesome-command.php
<?php
namespace FortAwesome;

require_once trailingslashit( FONTAWESOME_DIR_PATH ) . 'includes/class-fontawesome-exception.php';

/**
 * Class to wrap a closure for use with WordPress action hook callbacks.
 *
 * Internal use only.
 *
 * @internal
 * @ignore
 */
class FontAwesome_Command {
	/**
	 * Internal only.
	 *
	 * @internal
	 * @ignore
	 */
	protected $cmd;

	/**
	 * Internal only.
	 *
	 * @internal
	 * @ignore
	 */
	public function __construct( $cmd ) {
		$this->cmd = $cmd;
	}

	/**
	 * Internal only.
	 *
	 * @internal
	 * @ignore
	 */
	public function run( ...$params ) {
		return \call_user_func( $this->cmd, ...$params );
	}
}