Sender   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createFromXML() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Bpost\BpostApiClient\Bpost\Order;
5
6
use SimpleXMLElement;
7
8
/**
9
 * bPost Sender class
10
 *
11
 * @author Tijs Verkoyen <[email protected]>
12
 */
13
class Sender extends Customer
14
{
15
    public const TAG_NAME = 'sender';
16
17
    public static function createFromXML(SimpleXMLElement $xml): self
18
    {
19
        /** @var self $sender */
20
        $sender = parent::createFromXMLHelper($xml, new self());
21
        return $sender;
22
    }
23
}
24