for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace solutionDrive\SyliusProductBundlesPlugin\Entity;
use Sylius\Component\Core\Model\Product as BaseProduct;
class Product extends BaseProduct
{
/** @var ProductBundleInterface */
private $productBundle;
public function setProductBundle(ProductBundleInterface $productBundle)
$this->productBundle = $productBundle;
}
public function getProductBundle(): ?ProductBundleInterface
return $this->productBundle;
public function getProductBundleId(): ?int
if (null === $this->productBundle) {
return null;
return $this->productBundle->getId();