Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BulkSessionProductsStorage.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
17 {
21  private $session;
22 
26  public function __construct(
27  \Magento\Backend\Model\Session\Proxy $session
28  ) {
29  $this->session = $session;
30  }
31 
36  public function setProductsSkus(array $productIds): void
37  {
38  $this->session->setProductSkus($productIds);
39  }
40 
45  public function getProductsSkus(): array
46  {
47  return $this->session->getProductSkus();
48  }
49 }