| Current Path : /var/www/magento.test.indacotrentino.com/www/app/code/Torresani/SiWeGO/Model/ |
| Current File : /var/www/magento.test.indacotrentino.com/www/app/code/Torresani/SiWeGO/Model/SiwegoStateFactory.php |
<?php
namespace Torresani\SiWeGO\Model;
use Magento\Framework\Model\AbstractModel;
use Magento\Framework\Model\Context;
use Magento\Framework\Registry;
class SiwegoStateFactory
{
protected $context;
protected $registry;
protected $siwegoState;
public function __construct(
Context $context,
Registry $registry,
\Torresani\SiWeGO\Model\SiwegoState $siwegoState
) {
$this->context = $context;
$this->registry = $registry;
$this->siwegoState = $siwegoState;
}
public function create(array $data = []): AbstractModel
{
return $this->siwegoState->setData($data);
}
}