AbstractCurveType   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
c 1
b 0
f 0
dl 0
loc 50
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getB() 0 3 1
A getA() 0 3 1
A __construct() 0 4 1
A toXML() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSecurity\XML\dsig11;
6
7
use DOMElement;
8
9
/**
10
 * Abstract class representing a dsig11:CurveType
11
 *
12
 * @package simplesaml/xml-security
13
 */
14
abstract class AbstractCurveType extends AbstractDsig11Element
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSecurity\X...1\AbstractDsig11Element 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...
15
{
16
    /**
17
     * Initialize a CurveType element.
18
     *
19
     * @param \SimpleSAML\XMLSecurity\XML\dsig11\A $a
20
     * @param \SimpleSAML\XMLSecurity\XML\dsig11\B $b
21
     */
22
    public function __construct(
23
        protected A $a,
24
        protected B $b,
0 ignored issues
show
Bug introduced by
The type SimpleSAML\XMLSecurity\XML\dsig11\B 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...
25
    ) {
26
    }
27
28
29
    /**
30
     * Collect the value of the a-property
31
     *
32
     * @return \SimpleSAML\XMLSecurity\XML\dsig11\A
33
     */
34
    public function getA(): A
35
    {
36
        return $this->a;
37
    }
38
39
40
    /**
41
     * Collect the value of the b-property
42
     *
43
     * @return \SimpleSAML\XMLSecurity\XML\dsig11\B
44
     */
45
    public function getB(): B
46
    {
47
        return $this->b;
48
    }
49
50
51
    /**
52
     * Convert this CurveType element to XML.
53
     *
54
     * @param \DOMElement|null $parent The element we should append this CurveType element to.
55
     */
56
    public function toXML(?DOMElement $parent = null): DOMElement
57
    {
58
        $e = $this->instantiateParentElement($parent);
59
60
        $this->getA()->toXML($e);
61
        $this->getB()->toXML($e);
62
63
        return $e;
64
    }
65
}
66