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

ParcelLockerReducedMobilityZone   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
c 0
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createFromXML() 0 3 1
A toXML() 0 3 1
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