eaef15fbeba132d3d9a0c218a3e84a5fdc5f00e9
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Reflection / Fixture / DummyClassWithAllTypesOfMethods.php
1 <?php
2 namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Fixture class with getters and setters
19 *
20 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
21 */
22 class DummyClassWithAllTypesOfMethods
23 {
24 public function publicMethod()
25 {
26 }
27
28 protected function protectedMethod()
29 {
30 }
31
32 private function privateMethod()
33 {
34 }
35
36 /**
37 * @license
38 * @copyright
39 * @author
40 * @version
41 * @const
42 */
43 public function methodWithIgnoredTags()
44 {
45 }
46
47 public function injectSettings()
48 {
49 // Will fail, as injectSettings is blacklisted
50 }
51
52 public function injectMethodWithoutParam()
53 {
54 // Will fail, as there is no param
55 }
56
57 protected function injectMethodThatIsProtected()
58 {
59 // Will fail, as method is protected
60 }
61
62 public function injectFoo(DummyClassWithAllTypesOfMethods $foo)
63 {
64 // Will succeed
65 }
66
67 public static function staticMethod()
68 {
69 }
70
71 public static function methodWithMandatoryParam($param)
72 {
73 }
74
75 public static function methodWithNullableParam($param = null)
76 {
77 }
78
79 public static function methodWithDefaultValueParam($param = 'foo')
80 {
81 }
82
83 public static function methodWithTypeHintedParam(string $param)
84 {
85 }
86 }