- Working on revamping Ulmus bases classes
This commit is contained in:
1 parent
c417b00ed4
commit
25ab845886
12 files changed
+303
-52
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user