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

AttributesBuilder   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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