- Working on revamping Ulmus bases classes

This commit is contained in:
mcndave authored and Dave Mc Nicoll committed 2026-10-22 17:24:04 +00:00
1 parent c417b00ed4
commit 25ab845886
12 files changed
+303 -52

No files matched your search

+2 -4
View File
@@ -5,13 +5,11 @@ namespace Ulmus;
use Psr\SimpleCache\CacheInterface;
use Ulmus\Adapter\AdapterInterface;
use Ulmus\Common\PdoObject;
class ConnectionAdapter
{
protected AdapterInterface $adapter;
protected PdoObject $pdo;
protected \PDO $pdo;
public function __construct(
public string $name = "default",
@@ -63,7 +61,7 @@ class ConnectionAdapter
return $this->adapter;
}
public function pdo() : PdoObject
public function pdo() : \PDO
{
return $this->pdo ?? $this->connect()->pdo;
}