Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ClientVersionBuilder.php
Go to the documentation of this file.
1 <?php
7 
9 
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 }