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

AttributesBuilder::build()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 11
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 10
nc 1
nop 1
dl 0
loc 15
ccs 11
cts 11
cp 1
crap 2
rs 9.9332
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;
0 ignored issues
show
Bug introduced by
The type PhpParser\Node 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\Attributes\Attribute;
12
13
/**
14
 * It builds an array of `Attributes` for a `ClassDefinition` or a `TraitDefinition`
15
 *
16
 * It applies one or more `VisibilityFilter`s
17
 *
18
 * @see PrivateVisibilityFilter
19
 * @see ProtectedVisibilityFilter
20
 */
21
interface AttributesBuilder
22
{
23
    /**
24
     * @param Node[] $parsedAttributes
25
     * @return Attribute[]
26
     */
27
    public function build(array $parsedAttributes): array;
28
}
29