Completed
Push — dev/product_visibility ( 1ee472 )
by Kiyotaka
06:23
created

ProductVisibility   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
checkVisibility() 0 1 ?
A getQueryKey() 0 4 1
1
<?php
2
/*
3
 * This file is part of EC-CUBE
4
 *
5
 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
6
 *
7
 * http://www.ec-cube.co.jp/
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Eccube\Service\Product;
14
15
16
use Eccube\Doctrine\Query\WhereCustomizer;
17
use Eccube\Entity\Product;
18
use Eccube\Repository\QueryKey;
19
20
abstract class ProductVisibility extends WhereCustomizer
21
{
22
    /**
23
     * @param Product $Product
24
     * @return boolean
25
     */
26
    public abstract function checkVisibility(Product $Product);
27
28
    public function getQueryKey()
29
    {
30
        return QueryKey::PRODUCT_SEARCH;
31
    }
32
33
}
34