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

ICanBoogie / bind-activerecord / 6139815966

10 Sep 2023 10:27PM UTC coverage: 34.211% (+2.3%) from 31.933%
6139815966

push

github

olvlvl
ActiveRecord update

17 of 17 new or added lines in 5 files covered. (100.0%)

39 of 114 relevant lines covered (34.21%)

0.37 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