EncryptedAssertionWriter::createRootElement()   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 2
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\SerializationContext;
15
use LightSaml\SamlConstants;
16
17
class EncryptedAssertionWriter extends EncryptedElementWriter
18
{
19
    /**
20
     * @param \DOMNode             $parent
21
     * @param SerializationContext $context
22
     *
23
     * @return \DOMElement
24
     */
25
    protected function createRootElement(\DOMNode $parent, SerializationContext $context)
26
    {
27
        return $this->createElement('saml:EncryptedAssertion', SamlConstants::NS_ASSERTION, $parent, $context);
28
    }
29
}
30