1 | <?php |
||
2 | |||
3 | namespace DNADesign\Elemental\Tests\TopPage; |
||
4 | |||
5 | use DNADesign\Elemental\Models\BaseElement; |
||
6 | use SilverStripe\Dev\TestOnly; |
||
7 | |||
8 | /** |
||
9 | * Class TestContent |
||
10 | * |
||
11 | * @property int $ChildPageID |
||
12 | * @method TestChildPage ChildPage() |
||
13 | * @package DNADesign\Elemental\Tests\TopPage |
||
14 | */ |
||
15 | class TestContent extends BaseElement implements TestOnly |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private static $table_name = 'TestContent'; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private static $db = [ |
||
0 ignored issues
–
show
|
|||
26 | 'Content' => 'Varchar', |
||
27 | ]; |
||
28 | |||
29 | private static $has_one = [ |
||
0 ignored issues
–
show
|
|||
30 | 'ChildPage' => TestChildPage::class, |
||
31 | ]; |
||
32 | |||
33 | private static $cascade_duplicates = [ |
||
34 | 'ChildPage', |
||
35 | ]; |
||
36 | |||
37 | private static $cascade_deletes = [ |
||
0 ignored issues
–
show
|
|||
38 | 'ChildPage', |
||
39 | ]; |
||
40 | |||
41 | public function getType(): string |
||
42 | { |
||
43 | return 'Test element with content'; |
||
44 | } |
||
45 | } |
||
46 |