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

valkyrjaio / valkyrja / 20156277091

12 Dec 2025 04:26AM UTC coverage: 73.416% (-0.6%) from 74.002%
20156277091

push

github

MelechMizrachi
CI: Trying to fix coveralls.

8125 of 11067 relevant lines covered (73.42%)

17.9 hits per line

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

25.0
/src/Valkyrja/Filesystem/Data/InMemoryMetadata.php
1
<?php
2

3
declare(strict_types=1);
4

5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <melechmizrachi@gmail.com>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13

14
namespace Valkyrja\Filesystem\Data;
15

16
/**
17
 * Class InMemoryMetadata.
18
 *
19
 * @author Melech Mizrachi
20
 *
21
 * @psalm-type InMemoryMetadataAsArray array{mimetype: string|null, size: int|null, visibility: string|null}
22
 *
23
 * @phpstan-type InMemoryMetadataAsArray array{mimetype: string|null, size: int|null, visibility: string|null}
24
 */
25
class InMemoryMetadata
26
{
27
    public function __construct(
4✔
28
        public string|null $mimetype = null,
29
        public int|null $size = 0,
30
        public string|null $visibility = null,
31
    ) {
32
    }
4✔
33

34
    /**
35
     * @return InMemoryMetadataAsArray
36
     */
37
    public function toArray(): array
×
38
    {
39
        return [
×
40
            'mimetype'   => $this->mimetype,
×
41
            'size'       => $this->size,
×
42
            'visibility' => $this->visibility,
×
43
        ];
×
44
    }
45
}
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