ContactForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
eloc 15
c 3
b 0
f 0
dl 0
loc 41
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 17 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Contact\Http\Controllers\Admin\Grid;
6
7
use AbterPhp\Admin\Http\Controllers\Admin\GridAbstract;
8
use AbterPhp\Contact\Service\RepoGrid\Form as RepoGrid;
9
use AbterPhp\Framework\Assets\AssetManager;
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
use Psr\Log\LoggerInterface;
15
16
class ContactForm extends GridAbstract
17
{
18
    const ENTITY_SINGULAR = 'contactForm';
19
    const ENTITY_PLURAL   = 'contactForms';
20
21
    const ENTITY_TITLE_SINGULAR = 'contact:contactForm';
22
    const ENTITY_TITLE_PLURAL   = 'contact:contactForms';
23
24
    const ROUTING_PATH = 'contact-forms';
25
26
    /** @var string */
27
    protected $resource = 'contactforms';
28
29
    /**
30
     * Form constructor.
31
     *
32
     * @param FlashService     $flashService
33
     * @param LoggerInterface  $logger
34
     * @param ITranslator      $translator
35
     * @param UrlGenerator     $urlGenerator
36
     * @param AssetManager     $assets
37
     * @param RepoGrid         $repoGrid
38
     * @param IEventDispatcher $eventDispatcher
39
     */
40
    public function __construct(
41
        FlashService $flashService,
42
        LoggerInterface $logger,
43
        ITranslator $translator,
44
        UrlGenerator $urlGenerator,
45
        AssetManager $assets,
46
        RepoGrid $repoGrid,
47
        IEventDispatcher $eventDispatcher
48
    ) {
49
        parent::__construct(
50
            $flashService,
51
            $logger,
52
            $translator,
53
            $urlGenerator,
54
            $assets,
55
            $repoGrid,
56
            $eventDispatcher
57
        );
58
    }
59
}
60