Passed
Push — master ( 7ba2cb...1d30f9 )
by Peter
02:20
created

UserApiKey   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Http\Controllers\Admin\Grid;
6
7
use AbterPhp\Admin\Service\RepoGrid\UserApiKey as RepoGrid;
8
use AbterPhp\Framework\Assets\AssetManager;
9
use AbterPhp\Framework\Http\Controllers\Admin\GridAbstract;
10
use AbterPhp\Framework\I18n\ITranslator;
11
use AbterPhp\Framework\Session\FlashService;
12
use Opulence\Events\Dispatchers\IEventDispatcher;
13
use Opulence\Routing\Urls\UrlGenerator;
14
15
class UserApiKey extends GridAbstract
16
{
17
    const ENTITY_SINGULAR = 'userApiKey';
18
    const ENTITY_PLURAL   = 'userApiKeys';
19
20
    const ENTITY_TITLE_PLURAL = 'admin:userApiKeys';
21
22
    /** @var string */
23
    protected $resource = 'user_api_keys';
24
25
    /**
26
     * ApiKey constructor.
27
     *
28
     * @param FlashService     $flashService
29
     * @param ITranslator      $translator
30
     * @param UrlGenerator     $urlGenerator
31
     * @param AssetManager     $assets
32
     * @param RepoGrid         $repoGrid
33
     * @param IEventDispatcher $eventDispatcher
34
     */
35
    public function __construct(
36
        FlashService $flashService,
37
        ITranslator $translator,
38
        UrlGenerator $urlGenerator,
39
        AssetManager $assets,
40
        RepoGrid $repoGrid,
41
        IEventDispatcher $eventDispatcher
42
    ) {
43
        parent::__construct(
44
            $flashService,
45
            $translator,
46
            $urlGenerator,
47
            $assets,
48
            $repoGrid,
49
            $eventDispatcher
50
        );
51
    }
52
}
53