Select Git revision
FilesystemDefinitions.php
-
Bartek Jaskulski authored
Signed-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
Bartek Jaskulski authoredSigned-off-by:
Bart Jaskulski <bjaskulski@protonmail.com>
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);
}
}