Passed
Pull Request — master (#35)
by Ihor
14:48
created

AssignedProductTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
dl 0
loc 26
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuery() 0 3 1
A getCheckboxCheckedAttribute() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace Pyz\Zed\ProductLabelGui\Communication\Table;
9
10
class AssignedProductTable extends AbstractRelatedProductRelationTable
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $tableIdentifier = 'assigned-product-table';
16
17
    /**
18
     * @var string
19
     */
20
    protected $defaultUrl = 'assigned-product-table';
21
22
    /**
23
     * @return \Orm\Zed\Product\Persistence\SpyProductAbstractQuery
24
     */
25
    protected function getQuery()
26
    {
27
        return $this->tableQueryBuilder->buildAssignedProductQuery($this->idProductLabel);
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    protected function getCheckboxCheckedAttribute()
34
    {
35
        return 'checked="checked"';
36
    }
37
}
38