AuthMethodNode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 8
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * \AppserverIo\Appserver\Core\Api\Node\AuthMethodNode
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @copyright 2015 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      https://github.com/appserver-io/appserver
18
 * @link      http://www.appserver.io
19
 */
20
21
namespace AppserverIo\Appserver\Core\Api\Node;
22
23
use AppserverIo\Description\Api\Node\AbstractValueNode;
24
use AppserverIo\Configuration\Interfaces\ValueInterface;
25
26
/**
27
 * DTO to transfer an authentication method node.
28
 *
29
 * @author    Tim Wagner <[email protected]>
30
 * @copyright 2015 TechDivision GmbH <[email protected]>
31
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
32
 * @link      https://github.com/appserver-io/appserver
33
 * @link      http://www.appserver.io
34
 */
35
class AuthMethodNode extends AbstractValueNode
36
{
37
38
    /**
39
     * Initializes the display name node with the necessary data.
40
     *
41
     * @param \AppserverIo\Configuration\Interfaces\ValueInterface $nodeValue The params initial value
42
     */
43
    public function __construct(ValueInterface $nodeValue = null)
44
    {
45
46
        // initialize the UUID
47
        $this->setUuid($this->newUuid());
48
49
        // set the data
50
        $this->nodeValue = $nodeValue;
51
    }
52
}
53