Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SalesChannelInterface.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
18 {
22  const TYPE = 'type';
23  const CODE = 'code';
29  const TYPE_WEBSITE = 'website';
30 
36  public function getType(): ?string;
37 
44  public function setType(string $type): void;
45 
51  public function getCode(): ?string;
52 
59  public function setCode(string $code): void;
60 
66  public function getExtensionAttributes(): ?\Magento\InventorySalesApi\Api\Data\SalesChannelExtensionInterface;
67 
74  public function setExtensionAttributes(
75  \Magento\InventorySalesApi\Api\Data\SalesChannelExtensionInterface $extensionAttributes
76  ): void;
77 }
$type
Definition: item.phtml:13
setExtensionAttributes(\Magento\InventorySalesApi\Api\Data\SalesChannelExtensionInterface $extensionAttributes)
$extensionAttributes
Definition: payment.php:22
$code
Definition: info.phtml:12