Completed
Branch v1.x-dev (b0683a)
by Benjamin
08:17
created

LogoTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 1
b 0
f 0
dl 0
loc 32
ccs 0
cts 10
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setLogoFilename() 0 4 1
A getLogoFilename() 0 3 1
A setLogoMimeType() 0 4 1
A getLogoMimeType() 0 3 1
1
<?php
2
3
namespace Obblm\Core\Entity\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait LogoTrait
8
{
9
    /**
10
     * @ORM\Column(type="string", nullable=true)
11
     */
12
    private $logoFilename;
13
14
    /**
15
     * @ORM\Column(type="string", nullable=true)
16
     */
17
    private $logoMimeType;
18
19
    public function getLogoFilename(): ?string
20
    {
21
        return $this->logoFilename;
22
    }
23
24
    public function setLogoFilename(?string $logoFilename): self
25
    {
26
        $this->logoFilename = $logoFilename;
27
        return $this;
28
    }
29
30
    public function getLogoMimeType(): ?string
31
    {
32
        return $this->logoMimeType;
33
    }
34
35
    public function setLogoMimeType(?string $logoMimeType): self
36
    {
37
        $this->logoMimeType = $logoMimeType;
38
        return $this;
39
    }
40
}
41