[BUGFIX] Avoid reflection for public property injection
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Object / Container / Fixtures / ContainerPropertyInjectionTestClasses.php
1 <?php
2 declare(strict_types=1);
3
4 namespace TYPO3\CMS\Extbase\Tests\Unit\Object\Container\Fixtures;
5
6 use TYPO3\CMS\Extbase\Annotation\Inject;
7
8 class PublicPropertyInjectClass
9 {
10 /**
11 * @Inject
12 * @var \TYPO3\CMS\Extbase\Tests\Unit\Object\Container\Fixtures\ArgumentTestClassForPublicPropertyInjection
13 */
14 public $foo;
15 }
16
17 class ArgumentTestClassForPublicPropertyInjection
18 {
19 }
20
21 class ProtectedPropertyInjectClass
22 {
23
24 /**
25 * @Inject
26 * @var \TYPO3\CMS\Extbase\Tests\Unit\Object\Container\Fixtures\ArgumentTestClassForPublicPropertyInjection
27 */
28 protected $foo;
29
30 public function getFoo()
31 {
32 return $this->foo;
33 }
34 }