‪TYPO3CMS  9.5
DummyClassWithAllTypesOfMethods.php
Go to the documentation of this file.
1 <?php
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 
21 {
22  public function ‪publicMethod()
23  {
24  }
25 
26  protected function ‪protectedMethod()
27  {
28  }
29 
30  private function ‪privateMethod()
31  {
32  }
33 
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 
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 }
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectMethodThatIsProtected
‪injectMethodThatIsProtected()
Definition: DummyClassWithAllTypesOfMethods.php:54
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectFoo
‪injectFoo(DummyClassWithAllTypesOfMethods $foo)
Definition: DummyClassWithAllTypesOfMethods.php:59
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture
Definition: ArrayAccessClass.php:2
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectMethodWithoutParam
‪injectMethodWithoutParam()
Definition: DummyClassWithAllTypesOfMethods.php:49
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithMandatoryParam
‪static methodWithMandatoryParam($param)
Definition: DummyClassWithAllTypesOfMethods.php:68
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithTypeHintedParam
‪static methodWithTypeHintedParam(string $param)
Definition: DummyClassWithAllTypesOfMethods.php:80
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithIgnoredTags
‪methodWithIgnoredTags()
Definition: DummyClassWithAllTypesOfMethods.php:40
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\staticMethod
‪static staticMethod()
Definition: DummyClassWithAllTypesOfMethods.php:64
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\privateMethod
‪privateMethod()
Definition: DummyClassWithAllTypesOfMethods.php:30
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\injectSettings
‪injectSettings()
Definition: DummyClassWithAllTypesOfMethods.php:44
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithNullableParam
‪static methodWithNullableParam($param=null)
Definition: DummyClassWithAllTypesOfMethods.php:72
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\protectedMethod
‪protectedMethod()
Definition: DummyClassWithAllTypesOfMethods.php:26
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods
Definition: DummyClassWithAllTypesOfMethods.php:21
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\methodWithDefaultValueParam
‪static methodWithDefaultValueParam($param='foo')
Definition: DummyClassWithAllTypesOfMethods.php:76
‪TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods\publicMethod
‪publicMethod()
Definition: DummyClassWithAllTypesOfMethods.php:22