<?php

namespace ShopMagicVendor\WPDesk\ShowDecision;

class ConstantDefinedStrategy implements ShouldShowStrategy
{
    /**
     * @var string
     */
    private string $constant;
    public function __construct(string $constant)
    {
        $this->constant = $constant;
    }
    public function shouldDisplay(): bool
    {
        return defined($this->constant);
    }
}
