for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © Getnet. All rights reserved.
*
* @author Bruno Elisei <[email protected]>
* See LICENSE for license details.
*/
namespace Getnet\PaymentMagento\Model\Console\Command;
use Magento\Payment\Model\Method\Logger;
use Symfony\Component\Console\Output\OutputInterface;
class AbstractModel
{
* @var Logger
protected $logger;
* @var OutputInterface
protected $output;
* @param Logger $logger
public function __construct(
Logger $logger
) {
$this->logger = $logger;
}
* Output.
* @param OutputInterface $output
* @return void
public function setOutput(OutputInterface $output)
$this->output = $output;
* Console Write.
* @param string $text
protected function write(string $text)
if ($this->output instanceof OutputInterface) {
$this->output
Symfony\Component\Console\Output\OutputInterface
$this->output->write($text);
* Console WriteLn.
protected function writeln($text)
$this->output->writeln($text);