| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/enairehub/wp-content/plugins/webp-converter-for-media/src/ |
Upload File : |
<?php
namespace WebpConverter;
/**
* Stores information about the plugin.
*/
class PluginInfo {
/**
* @var string
*/
private $plugin_file;
/**
* @var string
*/
private $plugin_version;
/**
* @var string
*/
private $plugin_basename;
/**
* @var string
*/
private $plugin_directory_path;
/**
* @var string
*/
private $plugin_directory_url;
/**
* @param string $plugin_file Path to the main plugin file.
* @param string $plugin_version .
*/
public function __construct( string $plugin_file, string $plugin_version ) {
$this->plugin_file = $plugin_file;
$this->plugin_version = $plugin_version;
$this->plugin_basename = plugin_basename( $plugin_file );
$this->plugin_directory_path = plugin_dir_path( $plugin_file );
$this->plugin_directory_url = plugin_dir_url( $plugin_file );
}
public function get_plugin_file(): string {
return $this->plugin_file;
}
public function get_plugin_version(): string {
return $this->plugin_version;
}
public function get_plugin_basename(): string {
return $this->plugin_basename;
}
public function get_plugin_slug(): string {
return dirname( $this->plugin_basename );
}
public function get_plugin_directory_path(): string {
return $this->plugin_directory_path;
}
public function get_plugin_directory_url(): string {
return $this->plugin_directory_url;
}
}