Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-signifyd
Model
SignifydGateway
Request
ClientVersionBuilder.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Signifyd\Model\SignifydGateway\Request
;
7
8
use
Magento\Framework\App\ProductMetadataInterface
;
9
13
class
ClientVersionBuilder
14
{
18
private
static
$clientVersion =
'1.0'
;
19
23
private
$productMetadata;
24
28
public
function
__construct
(
29
ProductMetadataInterface
$productMetadata
30
) {
31
$this->productMetadata = $productMetadata;
32
}
33
39
public
function
build
()
40
{
41
return
[
42
'platformAndClient'
=> [
43
'storePlatform'
=> $this->productMetadata->getName() .
' '
. $this->productMetadata->getEdition(),
44
'storePlatformVersion'
=> $this->productMetadata->getVersion(),
45
'signifydClientApp'
=> $this->productMetadata->getName(),
46
'signifydClientAppVersion'
=> self::$clientVersion,
47
]
48
];
49
}
50
}
Magento\Signifyd\Model\SignifydGateway\Request\ClientVersionBuilder\__construct
__construct(ProductMetadataInterface $productMetadata)
Definition:
ClientVersionBuilder.php:28
Magento\Signifyd\Model\SignifydGateway\Request\ClientVersionBuilder
Definition:
ClientVersionBuilder.php:13
Magento\Framework\App\ProductMetadataInterface
Definition:
ProductMetadataInterface.php:14
Magento\Signifyd\Model\SignifydGateway\Request\ClientVersionBuilder\build
build()
Definition:
ClientVersionBuilder.php:39
Magento\Signifyd\Model\SignifydGateway\Request
Definition:
CreateCaseBuilderTest.php:6