9049de21f647e474b93de12f6f0b759b035b7f4c
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Domain / Configuration / FrameworkConfiguration / Extractors / ExtractorDto.php
1 <?php
2 declare(strict_types = 1);
3 namespace TYPO3\CMS\Form\Domain\Configuration\FrameworkConfiguration\Extractors;
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
18 /**
19 * @internal
20 */
21 class ExtractorDto
22 {
23
24 /**
25 * @var array
26 */
27 protected $prototypeConfiguration;
28
29 /**
30 * @var array
31 */
32 protected $result = [];
33
34 /**
35 * @param array $prototypeConfiguration
36 */
37 public function __construct(array $prototypeConfiguration)
38 {
39 $this->prototypeConfiguration = $prototypeConfiguration;
40 }
41
42 /**
43 * @return string
44 */
45 public function getPrototypeConfiguration(): array
46 {
47 return $this->prototypeConfiguration;
48 }
49
50 /**
51 * @return string
52 */
53 public function getResult(): array
54 {
55 return $this->result;
56 }
57
58 /**
59 * @return string
60 * @return ExtractorDto
61 */
62 public function setResult(array $result): ExtractorDto
63 {
64 $this->result = $result;
65 return $this;
66 }
67 }