Passed
Push — master ( cbe288...130872 )
by Peter
02:31
created

PageCategory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Website\Http\Controllers\Admin\Grid;
6
7
use AbterPhp\Framework\Assets\AssetManager;
8
use AbterPhp\Framework\Http\Controllers\Admin\GridAbstract;
9
use AbterPhp\Framework\I18n\ITranslator;
10
use AbterPhp\Framework\Session\FlashService;
11
use AbterPhp\Website\Service\RepoGrid\PageCategory as RepoGrid;
12
use Opulence\Events\Dispatchers\IEventDispatcher;
13
use Opulence\Routing\Urls\UrlGenerator;
14
15
class PageCategory extends GridAbstract
16
{
17
    const ENTITY_SINGULAR = 'pageCategory';
18
    const ENTITY_PLURAL   = 'pageCategories';
19
20
    const ENTITY_TITLE_PLURAL = 'website:pageCategories';
21
22
    /** @var string */
23
    protected $resource = 'page_categories';
24
25
    /**
26
     * PageCategory 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