Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
test
/
wp-content
/
plugins
/
flexible-shipping
/
vendor_prefixed
/
octolize
/
wp-octolize-tracker
/
src
/
OptInNotice
:
ShouldDisplayGetParameterValue.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace FSVendor\Octolize\Tracker\OptInNotice; /** * Should display $_GET parameter value. */ class ShouldDisplayGetParameterValue implements \FSVendor\Octolize\Tracker\OptInNotice\ShouldDisplay { /** * @var string */ private $parameter; /** * @var string */ private $value; /** * @param string $parameter * @param string $value */ public function __construct(string $parameter, string $value) { $this->parameter = $parameter; $this->value = $value; } /** * @inheritDoc */ public function should_display() { return isset($_GET[$this->parameter]) && $_GET[$this->parameter] === $this->value; } }