Issues (464)

src/Admin/ProductCatalogAdmin.php (6 issues)

Severity
1
<?php
2
3
namespace SilverShop\Admin;
4
5
use SilverShop\Model\Variation\AttributeType;
6
use SilverShop\Page\Product;
7
use SilverShop\Page\ProductCategory;
8
use SilverStripe\Admin\ModelAdmin;
9
10
/**
11
 * Product Catalog Admin
12
 **/
13
class ProductCatalogAdmin extends ModelAdmin
14
{
15
    private static $url_segment = 'catalog';
0 ignored issues
show
The private property $url_segment is not used, and could be removed.
Loading history...
16
17
    private static $menu_title = 'Catalog';
0 ignored issues
show
The private property $menu_title is not used, and could be removed.
Loading history...
18
19
    private static $menu_priority = 5;
0 ignored issues
show
The private property $menu_priority is not used, and could be removed.
Loading history...
20
21
    private static $menu_icon_class = 'silvershop-icon-catalog';
0 ignored issues
show
The private property $menu_icon_class is not used, and could be removed.
Loading history...
22
23
    private static $managed_models = [
0 ignored issues
show
The private property $managed_models is not used, and could be removed.
Loading history...
24
        Product::class,
25
        ProductCategory::class,
26
        AttributeType::class,
27
    ];
28
29
    private static $model_importers = [
0 ignored issues
show
The private property $model_importers is not used, and could be removed.
Loading history...
30
        Product::class => ProductBulkLoader::class,
31
    ];
32
}
33