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

nepada / bust-cache / 6342075144

28 Sep 2023 05:04PM UTC coverage: 95.395% (-3.3%) from 98.726%
6342075144

push

github

xificurk
nepada/phpstan-nette-tester version bump

290 of 304 relevant lines covered (95.39%)

0.95 hits per line

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

71.43
/src/BustCache/Caching/FileDependency.php
1
<?php
2
declare(strict_types = 1);
3

4
namespace Nepada\BustCache\Caching;
5

6
use Nepada\BustCache\FileSystem\File;
7

8
final class FileDependency
9
{
10

11
    public function __construct(
1✔
12
        public readonly string $path,
13
        public readonly int|false $modificationTime,
14
    )
15
    {
16
    }
1✔
17

18
    public static function fromFile(File $file): self
1✔
19
    {
20
        $stringPath = $file->path->toString();
1✔
21
        return new self($stringPath, @filemtime($stringPath));
1✔
22
    }
23

24
    /**
25
     * @deprecated read the property directly instead
26
     */
27
    public function getPath(): string
28
    {
29
        return $this->path;
×
30
    }
31

32
    /**
33
     * @deprecated read the property directly instead
34
     */
35
    public function getModificationTime(): int|false
36
    {
37
        return $this->modificationTime;
×
38
    }
39

40
}
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