Completed
Push — master ( ed6979...760c22 )
by Joachim
08:32
created

BrandImage   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isLogo() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Loevgaard\SyliusBrandPlugin\Entity;
6
7
use Sylius\Component\Core\Model\Image;
8
9
class BrandImage extends Image
10
{
11
    const TYPE_LOGO = 'logo';
12
13
    public function isLogo(): bool
14
    {
15
        return $this->getType() === self::TYPE_LOGO;
16
    }
17
}
18