ContainerBuilderInterface::build()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by Vitaly Iegorov <[email protected]>
4
 * on 03.04.2015 at 15:43
5
 */
6
namespace samsonframework\container;
7
8
/**
9
 * Container builder interface.
10
 *
11
 * @package samsonframework\container
12
 * @author Vitaly Iegorov <[email protected]>
13
 */
14
interface ContainerBuilderInterface
15
{
16
    /**
17
     * Build container class.
18
     *
19
     * @param array $classMetadata Collection of classes value for container
0 ignored issues
show
Documentation introduced by
There is no parameter named $classMetadata. Did you maybe mean $classesMetadata?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

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

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

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

Loading history...
20
     * @param string|null $containerClass Container class name
21
     * @param string      $namespace      Name space
22
     *
23
     * @return string Generated Container class code
24
     * @throws \InvalidArgumentException
25
     */
26
    public function build(array $classesMetadata, $containerClass = 'Container', $namespace = '');
27
28
}
29