Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Async.php
Go to the documentation of this file.
1 <?php
7 declare(strict_types=1);
8 
10 
12 
16 class Async implements SchemaTypeInterface
17 {
21  private $code;
22 
28  public function __construct(string $code = 'async')
29  {
30  $this->code = $code;
31  }
32 
36  public function getCode()
37  {
38  return $this->code;
39  }
40 
45  public function getSchemaUrlPath($store = null)
46  {
47  $store = $store ?? 'all';
48 
49  return '/rest/' . $store . '/' . $this->code . '/schema?services=all';
50  }
51 }