[TASK] Streamline phpdoc annotations in EXT:extbase
[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 class DummyClassWithAllTypesOfMethods
21 {
22 public function publicMethod()
23 {
24 }
25
26 protected function protectedMethod()
27 {
28 }
29
30 private function privateMethod()
31 {
32 }
33
34 /**
35 * @license
36 * @copyright
37 * @author
38 * @version
39 */
40 public function methodWithIgnoredTags()
41 {
42 }
43
44 public function injectSettings()
45 {
46 // Will fail, as injectSettings is blacklisted
47 }
48
49 public function injectMethodWithoutParam()
50 {
51 // Will fail, as there is no param
52 }
53
54 protected function injectMethodThatIsProtected()
55 {
56 // Will fail, as method is protected
57 }
58
59 public function injectFoo(DummyClassWithAllTypesOfMethods $foo)
60 {
61 // Will succeed
62 }
63
64 public static function staticMethod()
65 {
66 }
67
68 public static function methodWithMandatoryParam($param)
69 {
70 }
71
72 public static function methodWithNullableParam($param = null)
73 {
74 }
75
76 public static function methodWithDefaultValueParam($param = 'foo')
77 {
78 }
79
80 public static function methodWithTypeHintedParam(string $param)
81 {
82 }
83 }