1 | <?php |
||
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 |