Completed
Push — master ( 0f351b...581e4b )
by Tim
10s
created

Fixture::__getClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * AppserverIo\Psr\EnterpriseBeans\Annotations\Fixture
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 2018 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-psr/epb
18
 * @link      http://www.appserver.io
19
 */
20
21
namespace AppserverIo\Psr\EnterpriseBeans\Annotations;
22
23
/**
24
 * Annotation to map a Doctrine Fixture.
25
 *
26
 * @author    Tim Wagner <[email protected]>
27
 * @copyright 2018 TechDivision GmbH <[email protected]>
28
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
 * @link      https://github.com/appserver-io-psr/epb
30
 * @link      http://www.appserver.io
31
 */
32
class Fixture extends AbstractBeanAnnotation
33
{
34
35
    /**
36
     * The annotation to define Doctrine Migration version.
37
     *
38
     * @var string
39
     */
40
    const ANNOTATION = 'Fixture';
41
42
    /**
43
     * This method returns the class name as
44
     * a string.
45
     *
46
     * @return string
47
     */
48
    public static function __getClass()
49
    {
50
        return __CLASS__;
51
    }
52
53
    /**
54
     * Returns the value of the name attribute.
55
     *
56
     * @return string|null The annotations name attribute
57
     */
58
    public function getName()
59
    {
60
        if (isset($this->values['name'])) {
61
            return $this->values['name'];
62
        }
63
    }
64
}
65