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

tempestphp / tempest-framework / 12021710761

25 Nov 2024 06:54PM UTC coverage: 79.441% (-2.6%) from 81.993%
12021710761

push

github

web-flow
ci: close stale issues and pull requests

7879 of 9918 relevant lines covered (79.44%)

61.32 hits per line

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

75.0
/src/Tempest/View/src/Components/AnonymousViewComponent.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\View\Components;
6

7
use Tempest\View\Elements\ViewComponentElement;
8
use Tempest\View\ViewComponent;
9

10
final readonly class AnonymousViewComponent implements ViewComponent
11
{
12
    public function __construct(
6✔
13
        private string $contents,
14
        private string $file,
15
    ) {
16
    }
6✔
17

18
    public static function getName(): string
×
19
    {
20
        return 'x-component';
×
21
    }
22

23
    public function compile(ViewComponentElement $element): string
25✔
24
    {
25
        return $this->contents;
25✔
26
    }
27

28
    public function getPath(): string
1✔
29
    {
30
        return $this->file;
1✔
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