| Total Complexity | 3 | 
| Total Lines | 42 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | class Header  | 
            ||
| 13 | { | 
            ||
| 14 | /**  | 
            ||
| 15 | * @Serializer\XmlAttribute  | 
            ||
| 16 |      * @Serializer\Type("string") | 
            ||
| 17 | *  | 
            ||
| 18 | * @var string  | 
            ||
| 19 | */  | 
            ||
| 20 | private $name;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 |      * @Serializer\Type("string") | 
            ||
| 24 | * @Serializer\XmlValue  | 
            ||
| 25 | *  | 
            ||
| 26 | * @var string  | 
            ||
| 27 | */  | 
            ||
| 28 | private $value;  | 
            ||
| 29 | |||
| 30 | 12 | public function __construct(string $name, string $value)  | 
            |
| 31 |     { | 
            ||
| 32 | 12 | $this->name = $name;  | 
            |
| 33 | 12 | $this->value = $value;  | 
            |
| 34 | 12 | }  | 
            |
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * Returns the name of the header.  | 
            ||
| 38 | *  | 
            ||
| 39 | * @return string  | 
            ||
| 40 | */  | 
            ||
| 41 | 2 | public function getName(): string  | 
            |
| 42 |     { | 
            ||
| 43 | 2 | return $this->name;  | 
            |
| 44 | }  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * Returns the value of the header.  | 
            ||
| 48 | *  | 
            ||
| 49 | * @return string  | 
            ||
| 50 | */  | 
            ||
| 51 | 2 | public function getValue(): string  | 
            |
| 54 | }  | 
            ||
| 55 | }  | 
            ||
| 56 |