Completed
Push — master ( 3f65c6...83b473 )
by Vincent
02:48
created

AnnotatedClassWithDefaultOptions   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 62
rs 10
1
<?php
2
3
/**
4
 * Copyright 2016 Inneair
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 *
18
 * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache-2.0
19
 */
20
21
namespace Inneair\TransactionBundle\Test\Annotation\Fixture;
22
23
use Exception;
24
use InvalidArgumentException;
25
use Inneair\TransactionBundle\Annotation\Transactional;
26
use stdClass;
27
28
/**
29
 * Class which has a {@link Transactional} annotation.
30
 *
31
 * @Transactional
32
 */
33
class AnnotatedClassWithDefaultOptions
34
{
35
    public function unannotatedmethod()
36
    {
37
    }
38
39
    /**
40
     * @Transactional
41
     */
42
    public function annotatedMethodWithDefaultOptions()
43
    {
44
    }
45
46
    /**
47
     * @Transactional(policy="none")
48
     */
49
    public function annotatedMethodWithInvalidPolicyType()
50
    {
51
    }
52
53
    /**
54
     * @Transactional(policy=-1)
55
     */
56
    public function annotatedMethodWithInvalidPolicyValue()
57
    {
58
    }
59
60
    /**
61
     * @Transactional(policy=Transactional::NESTED)
62
     */
63
    public function annotatedMethodWithPolicy()
64
    {
65
    }
66
67
    /**
68
     * @Transactional(noRollbackExceptions={0})
69
     */
70
    public function annotatedMethodWithInvalidNoRollbackExceptionType()
71
    {
72
    }
73
74
    /**
75
     * @Transactional(noRollbackExceptions=stdClass::class)
76
     */
77
    public function annotatedMethodWithInvalidNoRollbackExceptionClass()
78
    {
79
    }
80
81
    /**
82
     * @Transactional(noRollbackExceptions="MyException")
83
     */
84
    public function annotatedMethodWithUnknownNoRollbackExceptionClass()
85
    {
86
    }
87
88
    /**
89
     * @Transactional(noRollbackExceptions={Exception::class, InvalidArgumentException::class})
90
     */
91
    public function annotatedMethodWithNoRollbackExceptions()
92
    {
93
    }
94
}
95