for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHP version 5.4 and 8
*
* @category MessageEntity
* @package Payever\Plugins
* @author payever GmbH <[email protected]>
* @author Hennadii.Shymanskyi <[email protected]>
* @copyright 2017-2021 payever GmbH
* @license MIT <https://opensource.org/licenses/MIT>
* @link https://docs.payever.org/shopsystems/api/getting-started
*/
namespace Payever\ExternalIntegration\Plugins\Http\MessageEntity;
use Payever\ExternalIntegration\Core\Base\MessageEntity;
use Payever\ExternalIntegration\Plugins\Enum\PluginCommandNameEnum;
* @method string getId()
* @method string getName()
* @method string getValue()
* @method string|null getChannelType()
* @method string|null getMinCmsVersion()
* @method string|null getMaxCmsVersion()
* @method array getMetadata()
* @SuppressWarnings(PHPMD.ShortVariable)
class PluginCommandEntity extends MessageEntity
{
/** @var string */
protected $id;
* @var string
* @see PluginCommandNameEnum
protected $name;
protected $value;
protected $channelType;
protected $minCmsVersion;
protected $maxCmsVersion;
* Additional data with specific for each command fields
* @var array
protected $metadata = [];
* @param string $key
* @return string|null
public function getMeta($key)
return isset($this->metadata[$key]) ? $this->metadata[$key] : null;
}
* @param string $value
* @return $this
public function setMeta($key, $value)
$this->metadata[$key] = $value;
return $this;