HEX
Server: Apache/2
System: Linux chaudang 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: mgawa (1021)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/mgawa/public_html/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 );
	}
}