Completed
Push — master ( 532c7f...7761c8 )
by Beñat
06:36
created

ResendInvitationUserService::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the BenGorUser package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace BenGorUser\CarlosBuenosvinosDddBridge\Application\Service\Invite;
14
15
use BenGorUser\User\Application\Command\Invite\ResendInvitationUserHandler;
16
use Ddd\Application\Service\ApplicationService;
17
18
/**
19
 * Resend invitation user service class.
20
 *
21
 * @author Beñat Espiña <[email protected]>
22
 * @author Gorka Laucirica <[email protected]>
23
 */
24
class ResendInvitationUserService implements ApplicationService
25
{
26
    /**
27
     * The command handler.
28
     *
29
     * @var InviteUserHandler
30
     */
31
    private $handler;
32
33
    /**
34
     * Constructor.
35
     *
36
     * @param ResendInvitationUserHandler $aHandler The command handler
37
     */
38
    public function __construct(ResendInvitationUserHandler $aHandler)
39
    {
40
        $this->handler = $aHandler;
0 ignored issues
show
Documentation Bug introduced by
It seems like $aHandler of type object<BenGorUser\User\A...dInvitationUserHandler> is incompatible with the declared type object<BenGorUser\Carlos...vite\InviteUserHandler> of property $handler.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
41
    }
42
43
    /**
44
     * {@inheritdoc}
45
     */
46
    public function execute($request = null)
47
    {
48
        $this->handler->__invoke($request);
49
    }
50
}
51