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

ICanBoogie / ActiveRecord / 4542546258

pending completion
4542546258

push

github

Olivier Laviale
Add 'belongs_to' to the SchemaBuilder

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

1356 of 1726 relevant lines covered (78.56%)

36.14 hits per line

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

0.0
/lib/ActiveRecord/Schema/Time.php
1
<?php
2

3
namespace ICanBoogie\ActiveRecord\Schema;
4

5
use Attribute;
6

7
#[Attribute(Attribute::TARGET_PROPERTY)]
8
final class Time extends Constraints implements SchemaColumn
9
{
10
    /**
11
     * @param array{
12
     *     null: bool,
13
     *     default: ?string,
14
     *     unique: bool,
15
     * } $an_array
16
     */
17
    public static function __set_state(array $an_array): object
18
    {
19
        return new self(
×
20
            $an_array['null'],
×
21
            $an_array['default'],
×
22
            $an_array['unique'],
×
23
        );
×
24
    }
25

26
    public function __construct(
27
        bool $null = false,
28
        ?string $default = null,
29
        bool $unique = false,
30
    ) {
31
        DateTime::assert_datetime_default($default);
×
32

33
        parent::__construct(
×
34
            null: $null,
×
35
            default: $default,
×
36
            unique: $unique,
×
37
        );
×
38
    }
39
}
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