Skip to content
Snippets Groups Projects
Select Git revision
  • c481c2f294eaf8477b8d9fbc874365908dfe140d
  • main default protected
  • v0.10
  • 0.10.6
  • 0.10.5
  • 0.10.4
  • 0.10.3
  • 0.10.2
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
12 results

FilesystemDefinitions.php

Blame
  • ConstantNotDefinedStrategy.php 329 B
    <?php
    
    namespace WPDesk\ShowDecision;
    
    class ConstantNotDefinedStrategy implements ShouldShowStrategy
    {
    
    	/**
    	 * @var string
    	 */
    	private string $constant;
    
    	public function __construct(string $constant)
    	{
    		$this->constant = $constant;
    	}
    
    	public function shouldDisplay(): bool
    	{
    		return ! defined($this->constant);
    	}
    
    }