Skip to content
Snippets Groups Projects
Select Git revision
  • 3743b7b2a912ad07589df6a6b2e63015dc54e738
  • main default protected
  • revert-ffead0bd
  • feature/init
  • 1.1.8
  • 1.1.7
  • 1.1.6
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.2
  • 1.0.2-beta3
  • 1.0.2-beta2
  • 1.0.2-beta1
  • 1.0.1
  • 1.0.1-beta4
  • 1.0.1-beta3
  • 1.0.1-beta2
  • 1.0.1-beta1
  • 1.0.0
  • 1.0.0-beta6
24 results

Settings.php

Blame
  • Settings.php 2.84 KiB
    <?php
    
    namespace WPDesk\ActivationReminder\Composer;
    
    class Settings {
    
    	const PLUGIN_TITLE = 'plugin-title';
    	const PLUGIN_DIR = 'plugin-dir';
    	const LOGO_URL = 'logo-url';
    	const BUY_PLUGIN_URL = 'buy-plugin-url';
    	const ACTIVATION_REMINDER = 'activation-reminder';
    	const HOW_TO_ACTIVATE_LINK = 'how-to-activate-link';
    
    	/**
    	 * @var string
    	 */
    	private $plugin_title;
    
    	/**
    	 * @var string
    	 */
    	private $plugin_dir;
    
    	/**
    	 * @var string
    	 */
    	private $logo_url;
    
    	/**
    	 * @var string
    	 */
    	private $buy_plugin_url;
    
    	/**
    	 * @var string
    	 */
    	private $how_to_activate_link;
    
    	/**
    	 * @param string $plugin_title
    	 * @param string $plugin_dir
    	 * @param string $logo_url
    	 * @param string $buy_plugin_url
    	 * @param string $how_to_activate_link
    	 */
    	public function __construct( string $plugin_title, string $plugin_dir, string $logo_url, string $buy_plugin_url, string $how_to_activate_link ) {
    		$this->plugin_title         = $plugin_title;
    		$this->plugin_dir           = $plugin_dir;
    		$this->logo_url             = $logo_url;
    		$this->buy_plugin_url       = $buy_plugin_url;
    		$this->how_to_activate_link = $how_to_activate_link;
    	}
    
    	/**
    	 * @return string
    	 */
    	public function get_plugin_title(): string {
    		return $this->plugin_title;
    	}
    
    	/**
    	 * @return string
    	 */
    	public function get_plugin_dir(): string {
    		return $this->plugin_dir;
    	}
    
    	/**
    	 * @return string
    	 */