PHP code example of dnafactory / module-fake-configurable
1. Go to this page and download the library: Download dnafactory/module-fake-configurable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnafactory / module-fake-configurable example snippets
namespace DNAFactory\FakeConfigurable\Api;
use Magento\Catalog\Api\Data\ProductInterface;
use Magento\Catalog\Model\ResourceModel\Product\Link\Collection as LinkCollection;
use Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection as ProductCollection;
interface BrotherManagementInterface
{
public function getBrotherProducts(ProductInterface $product): array;
public function getBrotherProductIds(ProductInterface $product): array;
public function getBrotherProductCollection(ProductInterface $product): ProductCollection;
public function getBrotherLinkCollection(ProductInterface $product): LinkCollection;
}