Passed
Pull Request — master (#7)
by Luis
20:14 queued 05:16
created

MethodsBuilder   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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