DummyClass::getField1()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Doctrine\Tests\Annotations;
4
5
use Doctrine\Tests\Annotations\DummyAnnotation;
6
use Doctrine\Tests\Annotations\Name;
7
use Doctrine\Tests\Annotations\DummyJoinTable;
8
use Doctrine\Tests\Annotations\DummyJoinColumn;
9
10
/**
11
 * A description of this class.
12
 *
13
 * Let's see if the parser recognizes that this @ is not really referring to an
14
 * annotation. Also make sure that @var \ is not concated to "@var\is".
15
 *
16
 * @author robo
17
 * @since 2.0
18
 * @DummyAnnotation(dummyValue="hello")
19
 */
20
class DummyClass
21
{
22
    /**
23
     * A nice property.
24
     *
25
     * @var mixed
26
     * @DummyAnnotation(dummyValue="fieldHello")
27
     */
28
    private $field1;
0 ignored issues
show
introduced by
The private property $field1 is not used, and could be removed.
Loading history...
29
30
    /**
31
     * @DummyJoinTable(name="join_table",
32
     *      joinColumns={@DummyJoinColumn(name="col1", referencedColumnName="col2")},
33
     *      inverseJoinColumns={
34
     *          @DummyJoinColumn(name="col3", referencedColumnName="col4")
35
     *      })
36
     */
37
    private $field2;
0 ignored issues
show
introduced by
The private property $field2 is not used, and could be removed.
Loading history...
38
39
    /**
40
     * Gets the value of field1.
41
     *
42
     * @return mixed
43
     * @DummyAnnotation({1,2,"three"})
44
     */
45
    public function getField1()
46
    {
47
    }
48
49
    /**
50
     * A parameter value with a space in it.
51
     *
52
     * @DummyAnnotation("\d{4}-[01]\d-[0-3]\d [0-2]\d:[0-5]\d:[0-5]\d")
53
     */
54
    public function getField3()
55
    {
56
    }
57
}
58