File "ConstantNotDefinedStrategy.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-show-decision/src/ConstantNotDefinedStrategy.php
File size: 375 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace FSVendor\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);
    }
}