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

conedevelopment / root / 20644444576

01 Jan 2026 07:39PM UTC coverage: 75.399% (-0.1%) from 75.542%
20644444576

push

github

iamgergo
wip

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

3451 of 4577 relevant lines covered (75.4%)

33.07 hits per line

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

0.0
/src/Enums/Arrayable.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Cone\Root\Enums;
6

7
trait Arrayable
8
{
9
    /**
10
     * Get the label of the enum case.
11
     */
NEW
12
    abstract public function label(): string;
×
13

14
    /**
15
     * Convert to array.
16
     */
NEW
17
    public static function toArray(): array
×
18
    {
NEW
19
        return array_reduce(self::cases(), function (array $cases, self $case): array {
×
NEW
20
            return array_merge(
×
NEW
21
                $cases,
×
NEW
22
                [$case->value => $case->label()]
×
NEW
23
            );
×
NEW
24
        }, []);
×
25
    }
26
}
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