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

nette / assets / 15013741244

14 May 2025 06:11AM UTC coverage: 93.578% (+0.7%) from 92.893%
15013741244

push

github

dg
assets: added new properties

2 of 2 new or added lines in 2 files covered. (100.0%)

10 existing lines in 7 files now uncovered.

204 of 218 relevant lines covered (93.58%)

0.94 hits per line

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

66.67
/src/Assets/VideoAsset.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Nette\Assets;
6

7

8
/**
9
 * Video asset.
10
 */
11
class VideoAsset implements Asset
12
{
13
        public function __construct(
1✔
14
                public readonly string $url,
15
                public readonly ?string $mimeType = null,
16
                public readonly ?string $sourcePath = null,
17
                public readonly ?int $width = null,
18
                public readonly ?int $height = null,
19
                /** Duration in seconds */
20
                public readonly ?float $duration = null,
21
                /** Poster image URL */
22
                public readonly ?string $poster = null,
23
                public readonly bool $autoPlay = false,
24
        ) {
25
        }
1✔
26

27

28
        public function __toString(): string
29
        {
UNCOV
30
                return $this->url;
×
31
        }
32
}
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