Passed
Push — master ( 2f478b...56a532 )
by Tim
02:08
created

HMACOutputLength   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\XMLSecurity\XML\ds;
6
7
use SimpleSAML\XML\IntegerElementTrait;
8
9
/**
10
 * Class representing a ds:HMACOutputLength element.
11
 *
12
 * @package simplesamlphp/xml-security
13
 */
14
final class HMACOutputLength extends AbstractDsElement
15
{
16
    use IntegerElementTrait;
17
18
19
    /**
20
     * @param string $length
21
     */
22
    public function __construct(string $length)
23
    {
24
        $this->setContent($length);
25
    }
26
}
27