UnknownDocument::getNodeName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 2
Metric Value
c 3
b 0
f 2
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
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 Sulu\Component\DocumentManager\Document;
13
14
use Sulu\Component\DocumentManager\Behavior\Mapping\NodeNameBehavior;
15
use Sulu\Component\DocumentManager\Behavior\Mapping\UuidBehavior;
16
17
/**
18
 * This document class is used when an unmapped node is loaded.
19
 */
20
class UnknownDocument implements NodeNameBehavior, UuidBehavior
21
{
22
    /**
23
     * @var string
24
     */
25
    private $nodeName;
26
27
    /**
28
     * @var string
29
     */
30
    private $uuid;
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function getNodeName()
36
    {
37
        return $this->nodeName;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getUuid()
44
    {
45
        return $this->uuid;
46
    }
47
}
48