This commit is contained in:
2022-11-25 20:52:52 -03:00
parent dd0410a0fb
commit efed50cd7f
39 changed files with 2777 additions and 5 deletions

View File

@ -0,0 +1,37 @@
<?php
namespace ProVM\Common\Service;
use ProVM\Common\Factory\Model;
use Psr\Log\LoggerInterface;
class Messages
{
public function __construct(Model $factory, LoggerInterface $logger)
{
$this->setFactory($factory)
->setLogger($logger);
}
protected Model $factory;
protected LoggerInterface $logger;
public function getFactory(): Model
{
return $this->factory;
}
public function getLogger(): LoggerInterface
{
return $this->logger;
}
public function setFactory(Model $factory): Messages
{
$this->factory = $factory;
return $this;
}
public function setLogger(LoggerInterface $logger): Messages
{
$this->logger = $logger;
return $this;
}
}