Passed
Push — variadic-params-visibility-con... ( ca0a66 )
by Luis
13:54
created

MethodsBuilder::buildParameters()   A

Complexity

Conditions 5
Paths 1

Size

Total Lines 24
Code Lines 17

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 5

Importance

Changes 0
Metric Value
cc 5
eloc 17
nc 1
nop 2
dl 0
loc 24
ccs 7
cts 7
cp 1
crap 5
rs 9.3888
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * PHP version 7.2
4
 *
5
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
6
 */
7
8
namespace PhUml\Parser\Code\Builders\Members;
9
10
use PhpParser\Node\Stmt\ClassMethod;
0 ignored issues
show
Bug introduced by
The type PhpParser\Node\Stmt\ClassMethod was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use PhUml\Code\Methods\Method;
12
13
/**
14
 * It builds an array with `Method`s for a `ClassDefinition`, an `InterfaceDefinition` or a
15
 * `TraitDefinition`
16
 *
17
 * It can run one or more `VisibilityFilter`s
18
 *
19
 * @see PrivateVisibilityFilter
20
 * @see ProtectedVisibilityFilter
21
 */
22
interface MethodsBuilder
23
{
24
    /**
25
     * @param ClassMethod[] $methods
26
     * @return Method[]
27
     */
28
    public function build(array $methods): array;
29
}
30