WIP on docs and added basic enums supports
This commit is contained in:
1 parent
497fe5547b
commit
b6752f4364
22 files changed
+367
-35
No files matched your search
@@ -83,6 +83,9 @@ class MsSQL implements AdapterInterface {
|
||||
catch(PDOException $ex){
|
||||
throw $ex;
|
||||
}
|
||||
finally {
|
||||
$this->password = str_repeat('*', random_int(8,16));
|
||||
}
|
||||
|
||||
return $pdo;
|
||||
}
|
||||
@@ -212,9 +215,12 @@ class MsSQL implements AdapterInterface {
|
||||
}
|
||||
|
||||
|
||||
public function writableValue(/* mixed */ $value) /*: mixed*/
|
||||
public function writableValue(mixed $value) /*: mixed*/
|
||||
{
|
||||
switch (true) {
|
||||
case $value instanceof \UnitEnum:
|
||||
return Ulmus::convertEnum($value);
|
||||
|
||||
case is_object($value):
|
||||
return Ulmus::convertObject($value);
|
||||
|
||||
|
||||
Reference in new issue
Block a user