UnknownDocument   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 7
Bugs 1 Features 3
Metric Value
c 7
b 1
f 3
dl 0
loc 28
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNodeName() 0 4 1
A getUuid() 0 4 1
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