for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Botonomous\utility;
use Botonomous\Config;
/**
* Class AbstractUtility.
*/
abstract class AbstractUtility
{
private $config;
* AbstractUtility constructor.
*
* @param Config|null $config
public function __construct(Config $config = null)
if ($config !== null) {
$this->setConfig($config);
}
* @return Config
public function getConfig(): Config
if ($this->config === null) {
$this->config = new Config();
return $this->config;
* @param Config $config
public function setConfig(Config $config)
$this->config = $config;