Completed
Push — dev-master ( 710732...009af4 )
by Karol
03:53 queued 10s
created

getDecodeControllerParameters()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Pgs\HashIdBundle\EventSubscriber\Sf34;
4
5
use Pgs\HashIdBundle\EventSubscriber\AbstractDecodeControllerParametersSubscriber;
6
use Pgs\HashIdBundle\EventSubscriber\DecodeControllerParametersSubscriberInterface;
7
use Pgs\HashIdBundle\Service\Sf34\DecodeControllerParameters;
8
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
9
use Symfony\Component\HttpKernel\Event\KernelEvent;
10
11
class DecodeControllerParametersSubscriber extends AbstractDecodeControllerParametersSubscriber implements
12
    DecodeControllerParametersSubscriberInterface
13
{
14
    /**
15
     * @param KernelEvent|FilterControllerEvent $event
16
     */
17
    public function onKernelController(KernelEvent $event): void
18
    {
19
        $this->getDecodeControllerParameters()->decodeControllerParameters($event);
20
    }
21
22
    public function getDecodeControllerParameters(): DecodeControllerParameters
23
    {
24
        return $this->decodeControllerParameters;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->decodeControllerParameters returns the type Pgs\HashIdBundle\EventSu...tersSubscriberInterface which is incompatible with the type-hinted return Pgs\HashIdBundle\Service...odeControllerParameters.
Loading history...
25
    }
26
}
27