PluginInterface
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
execute() 0 1 ?
filterResponse() 0 1 ?
1
<?php
2
3
namespace As3\Bundle\PostProcessBundle\Plugins;
4
5
use Symfony\Component\HttpKernel\Event\PostResponseEvent;
6
use Symfony\Component\HttpFoundation\Response;
7
8
/**
9
 * Defines structure for PostProcess plugins
10
 *
11
 * @author Josh Worden <[email protected]>
12
 */
13
interface PluginInterface
14
{
15
    /**
16
     * Fires before TaskManager registers shutdown functions for loaded tasks.
17
     * Called by As3\PostProcessBundle\Task\TaskManager::execute()
18
     *
19
     * @param   PostResponseEvent   $event  The Symfony post response event
20
     */
21
    public function execute(PostResponseEvent $event);
22
23
    /**
24
     * Handles modification (filtering) of the response as needed.
25
     * Called by As3\PostProcessBundle\Task\TaskManager::filterResponse() before returning the response.
26
     *
27
     * @param   Response            $event  The Symfony Response
0 ignored issues
show
Bug introduced by
There is no parameter named $event. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
28
     */
29
    public function filterResponse(Response $response);
30
}
31