DynamicTypeTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A targetClass() 0 4 1
A setTargetClass() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Infrastructure\Doctrine\ODM\MongoDB\Types;
11
12
/**
13
 * Dynamic Type Trait.
14
 *
15
 * @author Karel Osorio Ramírez <[email protected]>
16
 */
17
trait DynamicTypeTrait
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $targetClass = '';
23
24
    /**
25
     * @return string
26
     */
27
    public function targetClass()
28
    {
29
        return $this->targetClass;
30
    }
31
32
    /**
33
     * @param string $targetClass
34
     */
35
    public function setTargetClass($targetClass)
36
    {
37
        $this->targetClass = $targetClass;
38
    }
39
}
40