for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiqdev\yii2\cart;
use yii\base\Widget;
use hiqdev\yii2\cart\ShoppingCart;
use Yii;
class RelatedPosition implements RelatedPositionInterface
{
/** @var Widget */
public $widget;
/** @inheritDoc */
public function configure($type, array $params = []): RelatedPositionInterface
$this->widget = Yii::createObject($type, $params);
return $this;
}
public function render(): string
return $this->widget->run();