FileCategory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
c 1
b 0
f 0
nc 1
nop 6
dl 0
loc 15
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Files\Http\Controllers\Admin\Execute;
6
7
use AbterPhp\Admin\Http\Controllers\Admin\ExecuteAbstract;
8
use AbterPhp\Files\Service\Execute\FileCategory as RepoService;
9
use AbterPhp\Framework\I18n\ITranslator;
10
use AbterPhp\Framework\Session\FlashService;
11
use Opulence\Routing\Urls\UrlGenerator;
12
use Opulence\Sessions\ISession;
13
use Psr\Log\LoggerInterface;
14
15
class FileCategory extends ExecuteAbstract
16
{
17
    const ENTITY_SINGULAR = 'fileCategory';
18
    const ENTITY_PLURAL   = 'fileCategories';
19
20
    const ENTITY_TITLE_SINGULAR = 'files:fileCategory';
21
    const ENTITY_TITLE_PLURAL   = 'files:fileCategories';
22
23
    const ROUTING_PATH = 'file-categories';
24
25
    /**
26
     * FileCategory constructor.
27
     *
28
     * @param FlashService    $flashService
29
     * @param LoggerInterface $logger
30
     * @param ITranslator     $translator
31
     * @param UrlGenerator    $urlGenerator
32
     * @param RepoService     $repoService
33
     * @param ISession        $session
34
     */
35
    public function __construct(
36
        FlashService $flashService,
37
        LoggerInterface $logger,
38
        ITranslator $translator,
39
        UrlGenerator $urlGenerator,
40
        RepoService $repoService,
41
        ISession $session
42
    ) {
43
        parent::__construct(
44
            $flashService,
45
            $logger,
46
            $translator,
47
            $urlGenerator,
48
            $repoService,
49
            $session
50
        );
51
    }
52
}
53