for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Infrastructure\Settings;
class Settings
{
private array $settings;
public function __construct(array $settings)
$this->settings = $settings;
}
/**
* Get settings by key.
*
* @param string $key
* @return mixed
*/
public function get(string $key): mixed
return $this->settings[$key] ?? null;