403Webshell
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/Model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/enairehub/wp-content/plugins/webp-converter-for-media/src/Model/Token.php
<?php

namespace WebpConverter\Model;

/**
 * Stores token information for the PRO version.
 */
class Token {

	/**
	 * @var string|null
	 */
	private $token_value;

	/**
	 * @var bool
	 */
	private $valid_status;

	/**
	 * @var int
	 */
	private $images_usage;

	/**
	 * @var int
	 */
	private $images_limit;

	public function __construct(
		string $token_value = null,
		bool $valid_status = false,
		int $images_usage = 0,
		int $images_limit = 0
	) {
		$this->token_value  = $token_value;
		$this->valid_status = $valid_status;
		$this->images_usage = $images_usage;
		$this->images_limit = $images_limit;
	}

	public function set_token_value( string $token_value = null ): self {
		$this->token_value = $token_value;
		return $this;
	}

	/**
	 * @return string|null
	 */
	public function get_token_value() {
		return $this->token_value;
	}

	public function set_valid_status( bool $status ): self {
		$this->valid_status = $status;
		return $this;
	}

	public function get_valid_status(): bool {
		return $this->valid_status;
	}

	public function set_images_usage( int $count ): self {
		$this->images_usage = $count;
		return $this;
	}

	public function get_images_usage(): int {
		return $this->images_usage;
	}

	public function set_images_limit( int $count ): self {
		$this->images_limit = $count;
		return $this;
	}

	public function get_images_limit(): int {
		return $this->images_limit;
	}

	public function is_active(): bool {
		return ( $this->get_valid_status() && ( $this->get_images_usage() < $this->get_images_limit() ) );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit