Invariant::__getClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 4
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * \AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations\Invariant
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    Bernhard Wick <[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-psr/mop
18
 * @link      http://www.appserver.io/
19
 */
20
21
namespace AppserverIo\Psr\MetaobjectProtocol\Dbc\Annotations;
22
23
/**
24
 * Annotation class which is used to identify the state of a class instance which must be present after every
25
 * invocation or access to an exposed element (method or property) of this class
26
 *
27
 * @author    Bernhard Wick <[email protected]>
28
 * @copyright 2015 TechDivision GmbH - <[email protected]>
29
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
30
 * @link      https://github.com/appserver-io-psr/mop
31
 * @link      http://www.appserver.io/
32
 *
33
 * @Annotation
34
 * @Target({"CLASS"})
35
 */
36
class Invariant
37
{
38
    /**
39
     * The annotation which identifies this annotation class
40
     *
41
     * @var string
42
     */
43
    const ANNOTATION = 'Invariant';
44
45
    /**
46
     * This method returns the class name as a string
47
     *
48
     * @return string
49
     */
50
    public static function __getClass()
51
    {
52
        return __CLASS__;
53
    }
54
}
55