Passed
Push — master ( d2aa7b...8ea568 )
by Tim
01:24
created

ActorTrait::setActor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SOAP11\XML;
6
7
use SimpleSAML\SOAP11\Type\ActorValue;
0 ignored issues
show
Bug introduced by
The type SimpleSAML\SOAP11\Type\ActorValue 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...
8
9
/**
10
 * @package simplesamlphp/xml-wss-core
11
 *
12
 * @phpstan-ignore trait.unused
13
 */
14
trait ActorTrait
15
{
16
    /** @var \SimpleSAML\SOAP11\Type\ActorValue|null */
17
    protected ?ActorValue $actor;
18
19
20
    /**
21
     * @return \SimpleSAML\SOAP11\Type\ActorValue|null
22
     */
23
    public function getActor(): ?ActorValue
24
    {
25
        return $this->actor;
26
    }
27
28
29
    /**
30
     * @param \SimpleSAML\SOAP11\Type\ActorValue $actor|null
31
     */
32
    private function setActor(?ActorValue $actor): void
33
    {
34
        $this->actor = $actor;
35
    }
36
}
37