• 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

0.0
/src/Tempest/View/src/Components/Submit.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 Submit implements ViewComponent
11
{
12
    public static function getName(): string
×
13
    {
14
        return 'x-submit';
×
15
    }
16

17
    public function compile(ViewComponentElement $element): string
×
18
    {
19
        $label = $element->getAttribute('label') ?? 'Submit';
×
20

21
        return <<<HTML
×
22
<div>
×
23
<input type="submit" value="{$label}" />
×
24
</div>
25
HTML;
×
26
    }
27
}
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