Test Failed
Branch master (62528d)
by Zangra
14:14 queued 12:04
created

ParcelLockerReducedMobilityZone::toXML()   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
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Bpost\BpostApiClient\Bpost\Order\Box\National;
5
6
use Bpost\BpostApiClient\Common\ComplexAttribute;
7
use Bpost\BpostApiClient\Common\XmlHelper;
8
use DOMDocument;
9
use DOMElement;
10
use SimpleXMLElement;
11
12
class ParcelLockerReducedMobilityZone extends ComplexAttribute
13
{
14
    public function toXML(DOMDocument $document, ?string $prefix = null): DOMElement
15
    {
16
        return $document->createElement(XmlHelper::getPrefixedTagName('reducedMobilityZone', $prefix));
17
    }
18
19
20
    public static function createFromXML(SimpleXMLElement $xml): self
0 ignored issues
show
Unused Code introduced by
The parameter $xml is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

20
    public static function createFromXML(/** @scrutinizer ignore-unused */ SimpleXMLElement $xml): self

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        return new self();
23
    }
24
}
25