‪TYPO3CMS  11.5
DummyClassWithAllTypesOfMethods.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 {
25  public function ‪publicMethod(): void {}
26 
27  protected function ‪protectedMethod(): void {}
28 
29  private function ‪privateMethod(): void {}
30 
37  public function ‪methodWithIgnoredTags(): void {}
38 
39  public function ‪injectSettings(): void
40  {
41  // Will fail, as injectSettings is blacklisted
42  }
43 
44  public function ‪injectMethodWithoutParam(): void
45  {
46  // Will fail, as there is no param
47  }
48 
49  protected function ‪injectMethodThatIsProtected(): void
50  {
51  // Will fail, as method is protected
52  }
53 
55  {
56  // Will succeed
57  }
58 
59  public static function ‪staticMethod(): void {}
60 
61  public static function ‪methodWithMandatoryParam($param): void {}
62 
63  public static function ‪methodWithNullableParam($param = null): void {}
64 
65  public static function ‪methodWithDefaultValueParam($param = 'foo'): void {}
66 
67  public static function ‪methodWithTypeHintedParam(string $param): void {}
68 
72  public function ‪methodWithDocBlockTypeHintOnly($param): void {}
73 }
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectMethodThatIsProtected
‪injectMethodThatIsProtected()
Definition: DummyClassWithAllTypesOfMethods.php:49
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectFoo
‪injectFoo(DummyClassWithAllTypesOfMethods $foo)
Definition: DummyClassWithAllTypesOfMethods.php:54
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture
Definition: ArrayAccessClass.php:18
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectMethodWithoutParam
‪injectMethodWithoutParam()
Definition: DummyClassWithAllTypesOfMethods.php:44
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithMandatoryParam
‪static methodWithMandatoryParam($param)
Definition: DummyClassWithAllTypesOfMethods.php:61
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithTypeHintedParam
‪static methodWithTypeHintedParam(string $param)
Definition: DummyClassWithAllTypesOfMethods.php:67
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithIgnoredTags
‪methodWithIgnoredTags()
Definition: DummyClassWithAllTypesOfMethods.php:37
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\staticMethod
‪static staticMethod()
Definition: DummyClassWithAllTypesOfMethods.php:59
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\privateMethod
‪privateMethod()
Definition: DummyClassWithAllTypesOfMethods.php:29
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithDocBlockTypeHintOnly
‪methodWithDocBlockTypeHintOnly($param)
Definition: DummyClassWithAllTypesOfMethods.php:72
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectSettings
‪injectSettings()
Definition: DummyClassWithAllTypesOfMethods.php:39
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithNullableParam
‪static methodWithNullableParam($param=null)
Definition: DummyClassWithAllTypesOfMethods.php:63
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\protectedMethod
‪protectedMethod()
Definition: DummyClassWithAllTypesOfMethods.php:27
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods
Definition: DummyClassWithAllTypesOfMethods.php:24
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithDefaultValueParam
‪static methodWithDefaultValueParam($param='foo')
Definition: DummyClassWithAllTypesOfMethods.php:65
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\publicMethod
‪publicMethod()
Definition: DummyClassWithAllTypesOfMethods.php:25