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

ICanBoogie / bind-activerecord / 6137706288

10 Sep 2023 02:18PM UTC coverage: 34.821% (+3.2%) from 31.667%
6137706288

push

github

olvlvl
ICanBoogie/ActiveRecord update

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

39 of 112 relevant lines covered (34.82%)

0.38 hits per line

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

0.0
/lib/Record.php
1
<?php
2

3
namespace ICanBoogie\Binding\ActiveRecord;
4

5
use Attribute;
6
use ICanBoogie\ActiveRecord;
7
use Symfony\Component\DependencyInjection\Attribute\Autowire;
8

9
#[Attribute(Attribute::TARGET_PARAMETER)]
10
class Record extends Autowire
11
{
12
    public const SERVICE_PREFIX = 'active_record.model.';
13

14
    public static function format_service_id(string $activerecord_class): string
15
    {
16
        return self::SERVICE_PREFIX . $activerecord_class;
×
17
    }
18

19
    /**
20
     * @param class-string<ActiveRecord> $activerecord_class
21
     */
22
    public function __construct( // @phpstan-ignore-line
23
        public readonly string $activerecord_class,
24
    ) {
25
        parent::__construct(
×
26
            service: self::format_service_id($activerecord_class)
×
27
        );
×
28
    }
29
}
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