ProductPage
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
eloc 7
c 1
b 0
f 0
dl 0
loc 20
1
<?php
2
3
namespace Dynamic\Foxy\Discounts\Tests\TestOnly\Page;
4
5
use Dynamic\Foxy\Discounts\Extension\ProductDataExtension;
6
use Dynamic\Foxy\Extension\Purchasable;
7
use Dynamic\Foxy\Model\Variation;
8
use SilverStripe\Dev\TestOnly;
9
10
/**
11
 * Class ProductPage
12
 * @package Dynamic\Foxy\Discounts\Tests\TestOnly\Page
13
 */
14
class ProductPage extends \Page implements TestOnly
15
{
16
    /**
17
     * @var string
18
     */
19
    private static $table_name = 'FoxyProductTestPage';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
20
21
    /**
22
     * @var string[]
23
     */
24
    private static $extensions = [
0 ignored issues
show
introduced by
The private property $extensions is not used, and could be removed.
Loading history...
25
        Purchasable::class,
26
        ProductDataExtension::class,
27
    ];
28
29
    /**
30
     * @var string[]
31
     */
32
    private static $has_many = [
0 ignored issues
show
introduced by
The private property $has_many is not used, and could be removed.
Loading history...
33
        'Variations' => Variation::class,
34
    ];
35
}
36