| Server IP : 47.82.179.145 / Your IP : 216.73.216.89 Web Server : nginx/1.26.3 System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.3.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/scuipturepactory.com/wp-content/plugins.off/woocommerce-paypal-payments/src/ |
Upload File : |
<?php
/**
* Plugin properties.
*
* @package WooCommerce\PayPalCommerce
*/
declare (strict_types=1);
namespace WooCommerce\PayPalCommerce;
use Dhii\Package\Version\VersionInterface;
use WpOop\WordPress\Plugin\PluginInterface;
/**
* Plugin properties.
*/
class Plugin implements PluginInterface
{
/**
* The plugin name.
*
* @var string
*/
protected $name;
/**
* The plugin version.
*
* @var VersionInterface
*/
protected $version;
/**
* The path to the plugin base directory.
*
* @var string
*/
protected $base_dir;
/**
* The plugin base name.
*
* @var string
*/
protected $base_name;
/**
* The plugin URI.
*
* @var string
*/
protected $plugin_uri;
/**
* The plugin description.
*
* @var string
*/
protected $description;
/**
* The text domain of this plugin
*
* @var string
*/
protected $text_domain;
/**
* The minimal version of PHP required by this plugin.
*
* @var VersionInterface
*/
protected $min_php_version;
/**
* The minimal version of WP required by this plugin.
*
* @var VersionInterface
*/
protected $min_wp_version;
/**
* Plugin constructor.
*
* @param string $name The plugin name.
* @param VersionInterface $version The plugin version.
* @param string $base_dir The path to the plugin base directory.
* @param string $base_name The plugin base name.
* @param string $plugin_uri The plugin URI.
* @param string $description The plugin description.
* @param string $text_domain The text domain of this plugin.
* @param VersionInterface $min_php_version The minimal version of PHP required by this plugin.
* @param VersionInterface $min_wp_version The minimal version of WP required by this plugin.
*/
public function __construct(string $name, VersionInterface $version, string $base_dir, string $base_name, string $plugin_uri, string $description, string $text_domain, VersionInterface $min_php_version, VersionInterface $min_wp_version)
{
$this->name = $name;
$this->description = $description;
$this->version = $version;
$this->base_dir = $base_dir;
$this->base_name = $base_name;
$this->plugin_uri = $plugin_uri;
$this->text_domain = $text_domain;
$this->min_php_version = $min_php_version;
$this->min_wp_version = $min_wp_version;
}
/**
* The plugin name.
*/
public function getName(): string
{
return $this->name;
}
/**
* The plugin description.
*/
public function getDescription(): string
{
$allowed_tags = array('abbr' => array('title' => \true), 'acronym' => array('title' => \true), 'code' => \true, 'em' => \true, 'strong' => \true, 'a' => array('href' => \true, 'title' => \true));
// phpcs:disable
$text = \__($this->description, $this->text_domain);
/**
* @psalm-suppress InvalidArgument
*/
return wp_kses($text, $allowed_tags);
// phpcs:enable
}
/**
* The plugin version.
*/
public function getVersion(): VersionInterface
{
return $this->version;
}
/**
* The path to the plugin base directory.
*/
public function getBaseDir(): string
{
return $this->base_dir;
}
/**
* The plugin base name.
*/
public function getBaseName(): string
{
return $this->base_name;
}
/**
* The text domain of this plugin.
*/
public function getTextDomain(): string
{
return $this->text_domain;
}
/**
* The plugin URI.
*/
public function getUri(): string
{
return esc_url($this->plugin_uri);
}
/**
* The plugin title.
*/
public function getTitle(): string
{
return '<a href="' . $this->getUri() . '">' . $this->getName() . '</a>';
}
/**
* The minimal version of PHP required by this plugin.
*/
public function getMinPhpVersion(): VersionInterface
{
return $this->min_php_version;
}
/**
* The minimal version of WP required by this plugin.
*/
public function getMinWpVersion(): VersionInterface
{
return $this->min_wp_version;
}
}