Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Composite.php
Go to the documentation of this file.
1 <?php
8 
10 
14 abstract class Composite extends DefaultStockqty
15 {
21  private $_childProducts;
22 
28  abstract protected function _getChildProducts();
29 
35  public function getChildProducts()
36  {
37  if ($this->_childProducts === null) {
38  $this->_childProducts = $this->_getChildProducts();
39  }
40  return $this->_childProducts;
41  }
42 
48  public function getDetailsPlaceholderId()
49  {
50  return $this->getPlaceholderId() . '-details';
51  }
52 }