File "ShouldDisplayGetParameterPresent.php"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/flexible-shipping/vendor_prefixed/octolize/wp-octolize-tracker/src/OptInNotice/ShouldDisplayGetParameterPresent.php
File size: 555 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FSVendor\Octolize\Tracker\OptInNotice;
/**
* Should display $_GET parameter present.
*/
class ShouldDisplayGetParameterPresent implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay
{
/**
* @var string
*/
private $parameter;
/**
* @param string $parameter
*/
public function __construct(string $parameter)
{
$this->parameter = $parameter;
}
/**
* @inheritDoc
*/
public function should_display()
{
return isset($_GET[$this->parameter]);
}
}