for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Conia\Quma\Commands;
use Conia\Cli\Command as BaseCommand;
use Conia\Quma\Connection;
use Conia\Quma\Environment;
abstract class Command extends BaseCommand
{
protected readonly Environment $env;
/** @psalm-param array<non-empty-string, Connection>|Connection $conn */
public function __construct(array|Connection $conn, array $options = [])
if (is_array($conn)) {
is_array($conn)
true
$this->env = new Environment($conn, $options);
} else {
$this->env = new Environment(['default' => $conn], $options);
}