Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ResolutionRules.php
Go to the documentation of this file.
1 <?php
7 
11 
19 {
23  private $rulesReader;
24 
32  public function __construct(
33  Context $context,
34  Reader $rulesReader,
35  array $data = []
36  ) {
37  parent::__construct($context, $data);
38  $this->rulesReader = $rulesReader;
39  }
40 
46  public function getJson()
47  {
48  return json_encode($this->rulesReader->read(), JSON_FORCE_OBJECT);
49  }
50 }
__construct(Context $context, Reader $rulesReader, array $data=[])