mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-06 20:48:40 +00:00
auto-fix
This commit is contained in:
parent
44ea04b2c6
commit
77f099559b
|
|
@ -32,16 +32,19 @@ abstract class DataMapperAbstract
|
||||||
protected int $type = 0;
|
protected int $type = 0;
|
||||||
|
|
||||||
protected array $with = [];
|
protected array $with = [];
|
||||||
|
|
||||||
protected array $sort = [];
|
protected array $sort = [];
|
||||||
|
|
||||||
protected array $limit = [];
|
protected array $limit = [];
|
||||||
|
|
||||||
protected array $where = [];
|
protected array $where = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database connection.
|
* Database connection.
|
||||||
*
|
*
|
||||||
* @var ConnectionAbstract
|
* @var ConnectionAbstract
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected ConnectionAbstract $db;
|
protected ConnectionAbstract $db;
|
||||||
|
|
||||||
public function __construct(DataMapperFactory $mapper, ConnectionAbstract $db)
|
public function __construct(DataMapperFactory $mapper, ConnectionAbstract $db)
|
||||||
|
|
@ -95,9 +98,9 @@ abstract class DataMapperAbstract
|
||||||
$memberSplit = \array_shift($split);
|
$memberSplit = \array_shift($split);
|
||||||
|
|
||||||
$this->where[$memberSplit ?? ''][] = [
|
$this->where[$memberSplit ?? ''][] = [
|
||||||
'child' => \implode('/', $split),
|
'child' => \implode('/', $split),
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'logic' => $logic,
|
'logic' => $logic,
|
||||||
'comparison' => $comparison,
|
'comparison' => $comparison,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -151,7 +154,7 @@ abstract class DataMapperAbstract
|
||||||
return $relMapper;
|
return $relMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse value
|
* Parse value
|
||||||
*
|
*
|
||||||
* @param string $type Value type
|
* @param string $type Value type
|
||||||
|
|
@ -186,5 +189,5 @@ abstract class DataMapperAbstract
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract function execute(...$options);
|
abstract public function execute(...$options);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user