-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ide_helper_custom.php
54 lines (37 loc) · 1.36 KB
/
_ide_helper_custom.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/** @noinspection PhpFullyQualifiedNameUsageInspection */
/** @noinspection AutoloadingIssuesInspection */
/** @noinspection PhpUnused */
class IdeHelperRecord extends \PeskyORM\ORM\Record implements \Illuminate\Contracts\Auth\Authenticatable
{
use \PeskyORMLaravel\Db\Traits\Authenticatable;
use \PeskyORMLaravel\Db\LaravelKeyValueTableHelpers\LaravelKeyValueRecordHelpers;
}
class IdeHelperTableStructure extends \PeskyORM\ORM\TableStructure
{
use \PeskyORMColumns\TableStructureTraits\IdColumn;
public static function getTableName(): string
{
return '???';
}
}
class IdeHelperTableLaravel extends \PeskyORM\ORM\Table implements \PeskyORMLaravel\Db\LaravelKeyValueTableHelpers\LaravelKeyValueTableInterface
{
use \PeskyORMLaravel\Db\LaravelKeyValueTableHelpers\LaravelKeyValueTableHelpers;
public function newRecord(): IdeHelperRecord
{
return IdeHelperRecord::newEmptyRecord();
}
public function getTableStructure(): IdeHelperTableStructure
{
return IdeHelperTableStructure::getInstance();
}
}
class IdeHelperController1 extends \Illuminate\Routing\Controller
{
use \PeskyORMLaravel\Db\Traits\InjectsDbRecords;
}
class IdeHelperController2 extends \Illuminate\Routing\Controller
{
use \PeskyORMLaravel\Db\Traits\InjectsDbRecordsAndValidatesOwner;
}