nopolabs/yabot

View on GitHub
src/Helpers/ConfigTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
 
There must be one blank line after the namespace declaration
namespace Nopolabs\Yabot\Helpers;
 
 
trait ConfigTrait
{
/** @var array */
private $config = [];
 
public function setConfig(array $config)
{
$this->config = $config;
}
 
protected function getConfig() : array
{
return $this->config;
}
 
protected function has($key) : bool
{
return isset($this->config[$key]);
}
 
protected function get($key, $default = null)
{
return $this->config[$key] ?? $default;
}
Expected 1 newline at end of file; 0 found
}