Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
All Data Structures Namespaces Files Functions Variables Pages
StoreConfigBuilder.php
Go to the documentation of this file.
1 <?php
7 
10 
16 {
20  private $subjectReader;
21 
25  public function __construct(SubjectReader $subjectReader)
26  {
27  $this->subjectReader = $subjectReader;
28  }
29 
33  public function build(array $buildSubject)
34  {
35  $paymentDO = $this->subjectReader->readPayment($buildSubject);
36  $order = $paymentDO->getOrder();
37 
38  return [
39  'store_id' => $order->getStoreId()
40  ];
41  }
42 }
$order
Definition: order.php:55