‪TYPO3CMS  11.5
PublicMethodDeprecationTraitTextFixture.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 
21 
26 {
28 
29  protected array ‪$deprecatedPublicMethods = [
30  'methodMadeProtected' => 'Deprecation text',
31  'methodMadeProtectedWithArguments' => 'Deprecation text',
32  'methodMadeProtectedWithReturn' => 'Deprecation text',
33  ];
34 
35  public function ‪standardPublicMethod(): void
36  {
37  throw new \RuntimeException('test', 1528822131);
38  }
39 
40  protected function ‪standardProtectedMethod(): void
41  {
42  // empty
43  }
44 
48  protected function ‪methodMadeProtected(): void
49  {
50  throw new \RuntimeException('test', 1528822485);
51  }
52 
56  protected function ‪methodMadeProtectedWithReturn(): string
57  {
58  return 'foo';
59  }
60 
66  protected function ‪methodMadeProtectedWithArguments(string $arg1, string $arg2): void
67  {
68  if ($arg1 === 'foo' && $arg2 === 'bar') {
69  throw new \RuntimeException('test', 1528822486);
70  }
71  }
72 }
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture
Definition: PublicMethodDeprecationTraitTextFixture.php:26
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\methodMadeProtected
‪methodMadeProtected()
Definition: PublicMethodDeprecationTraitTextFixture.php:47
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\standardPublicMethod
‪standardPublicMethod()
Definition: PublicMethodDeprecationTraitTextFixture.php:34
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\methodMadeProtectedWithReturn
‪methodMadeProtectedWithReturn()
Definition: PublicMethodDeprecationTraitTextFixture.php:55
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures
Definition: PublicMethodDeprecationTraitTextFixture.php:18
‪TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
Definition: PublicMethodDeprecationTrait.php:70
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\standardProtectedMethod
‪standardProtectedMethod()
Definition: PublicMethodDeprecationTraitTextFixture.php:39
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\$deprecatedPublicMethods
‪array $deprecatedPublicMethods
Definition: PublicMethodDeprecationTraitTextFixture.php:28
‪TYPO3\CMS\Core\Tests\UnitDeprecated\Compatibility\Fixtures\PublicMethodDeprecationTraitTextFixture\methodMadeProtectedWithArguments
‪methodMadeProtectedWithArguments(string $arg1, string $arg2)
Definition: PublicMethodDeprecationTraitTextFixture.php:65