• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CPS-IT / handlebars-forms / 26085646722

19 May 2026 08:29AM UTC coverage: 0.522% (-0.02%) from 0.538%
26085646722

Pull #42

github

web-flow
Merge 0c216da43 into 3f232160f
Pull Request #42: [!!!][FEATURE] Support `multiple` attribute in `FileUpload` element

0 of 52 new or added lines in 1 file covered. (0.0%)

2 existing lines in 2 files now uncovered.

7 of 1342 relevant lines covered (0.52%)

0.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Classes/Domain/ViewModel/FileResourceViewModel.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the TYPO3 CMS extension "handlebars_forms".
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
namespace CPSIT\Typo3HandlebarsForms\Domain\ViewModel;
19

20
use TYPO3\CMS\Core;
21
use TYPO3\CMS\Extbase;
22
use TYPO3\CMS\Form;
23

24
/**
25
 * FileResourceViewModel
26
 *
27
 * @author Elias Häußler <e.haeussler@familie-redlich.de>
28
 * @license GPL-2.0-or-later
29
 *
30
 * @extends \ArrayObject<string|int, mixed>
31
 *
32
 * @phpstan-type FileResource Core\Resource\File|Core\Resource\FileReference|Extbase\Domain\Model\File|Extbase\Domain\Model\FileReference
33
 */
34
final class FileResourceViewModel extends \ArrayObject implements ViewModel
35
{
36
    /**
37
     * @param FileResource|Extbase\Persistence\ObjectStorage<FileResource> $resource
38
     */
UNCOV
39
    public function __construct(
×
40
        public readonly Form\Domain\Model\Renderable\RootRenderableInterface $renderable,
41
        public readonly Core\Resource\File|Core\Resource\FileReference|Extbase\Domain\Model\File|Extbase\Domain\Model\FileReference|Extbase\Persistence\ObjectStorage $resource,
42
    ) {
43
        parent::__construct(['resource' => $this->resource]);
×
44
    }
45

46
    public function getRenderable(): Form\Domain\Model\Renderable\RootRenderableInterface
×
47
    {
48
        return $this->renderable;
×
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc