OneTimeUse::deserialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
/*
4
 * This file is part of the LightSAML-Core package.
5
 *
6
 * (c) Milos Tomic <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace LightSaml\Model\Assertion;
13
14
use LightSaml\Model\Context\DeserializationContext;
15
use LightSaml\Model\Context\SerializationContext;
16
use LightSaml\SamlConstants;
17
18
class OneTimeUse extends AbstractCondition
19
{
20
    /**
21
     * @param \DOMNode             $parent
22
     * @param SerializationContext $context
23
     *
24
     * @return void
25
     */
26
    public function serialize(\DOMNode $parent, SerializationContext $context)
27
    {
28
        $this->createElement('OneTimeUse', SamlConstants::NS_ASSERTION, $parent, $context);
29
    }
30
31
    /**
32
     * @param \DOMNode               $node
33
     * @param DeserializationContext $context
34
     */
35
    public function deserialize(\DOMNode $node, DeserializationContext $context)
36
    {
37
        $this->checkXmlNodeName($node, 'OneTimeUse', SamlConstants::NS_ASSERTION);
38
    }
39
}
40