Passed
Push — master ( bf42cc...349842 )
by Peter
05:57
created

ContactForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 12
c 1
b 0
f 0
dl 0
loc 33
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Contact\Http\Controllers\Admin\Execute;
6
7
use AbterPhp\Contact\Service\Execute\Form as RepoService;
8
use AbterPhp\Framework\Http\Controllers\Admin\ExecuteAbstract;
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 ContactForm extends ExecuteAbstract
16
{
17
    const ENTITY_SINGULAR = 'contactForm';
18
    const ENTITY_PLURAL   = 'contactForms';
19
20
    const ENTITY_TITLE_SINGULAR = 'contact:contactForm';
21
    const ENTITY_TITLE_PLURAL   = 'contact:contactForms';
22
23
    /**
24
     * ContactForm constructor.
25
     *
26
     * @param FlashService    $flashService
27
     * @param ITranslator     $translator
28
     * @param UrlGenerator    $urlGenerator
29
     * @param LoggerInterface $logger
30
     * @param RepoService     $repoService
31
     * @param ISession        $session
32
     */
33
    public function __construct(
34
        FlashService $flashService,
35
        ITranslator $translator,
36
        UrlGenerator $urlGenerator,
37
        LoggerInterface $logger,
38
        RepoService $repoService,
39
        ISession $session
40
    ) {
41
        parent::__construct(
42
            $flashService,
43
            $translator,
44
            $urlGenerator,
45
            $logger,
46
            $repoService,
47
            $session
48
        );
49
    }
50
}
51