mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-11 21:38:40 +00:00
47 lines
1015 B
PHP
Executable File
47 lines
1015 B
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.1
|
|
*
|
|
* @package Modules\Admin\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Admin\Models;
|
|
|
|
use phpOMS\DataStorage\Database\Connection\ConnectionAbstract;
|
|
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|
|
|
/**
|
|
* Mapper class.
|
|
*
|
|
* @package Modules\Admin\Models
|
|
* @license OMS License 2.0
|
|
* @link https://jingga.app
|
|
* @since 1.0.0
|
|
*
|
|
* @template T of \phpOMS\Account\PermissionAbstract
|
|
* @extends DataMapperFactory<T>
|
|
*/
|
|
final class PermissionAbstractMapper extends DataMapperFactory
|
|
{
|
|
/**
|
|
* Create a permission query
|
|
*
|
|
* @param ConnectionAbstract $connection Connection
|
|
*
|
|
* @return PermissionQueryBuilder
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public static function helper(ConnectionAbstract $connection) : PermissionQueryBuilder
|
|
{
|
|
return new PermissionQueryBuilder($connection);
|
|
}
|
|
}
|