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

MethodsBuilder   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 76
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 42
dl 0
loc 76
ccs 22
cts 22
cp 1
rs 10
c 0
b 0
f 0
wmc 14
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