Passed
Push — master ( 32373f...f18c17 )
by Benjamin
05:50 queued 01:43
created

LogoTrait::setLogoFilename()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
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