1 | <?php |
||
2 | |||
3 | namespace LeKoala\Uuid\Tests; |
||
4 | |||
5 | use LeKoala\Uuid\HasUuid; |
||
6 | use SilverStripe\Dev\TestOnly; |
||
7 | use SilverStripe\ORM\DataObject; |
||
8 | use LeKoala\Uuid\UuidExtension; |
||
9 | |||
10 | class Test_UuidModel extends DataObject implements TestOnly |
||
11 | { |
||
12 | use HasUuid; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private static $table_name = 'UuidModel'; |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
18 | |||
19 | /** |
||
20 | * @var array<string,string> |
||
21 | */ |
||
22 | private static $db = [ |
||
0 ignored issues
–
show
|
|||
23 | 'Title' => 'Varchar', |
||
24 | 'UuidAlias' => 'Uuid', |
||
25 | ]; |
||
26 | /** |
||
27 | * @var array<class-string> |
||
0 ignored issues
–
show
|
|||
28 | */ |
||
29 | private static $extensions = [ |
||
0 ignored issues
–
show
|
|||
30 | UuidExtension::class |
||
31 | ]; |
||
32 | } |
||
33 |