CoverTrait   A
last analyzed

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 setCoverMimeType() 0 4 1
A setCoverFilename() 0 4 1
A getCoverMimeType() 0 3 1
A getCoverFilename() 0 3 1
1
<?php
2
3
namespace Obblm\Core\Entity\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait CoverTrait
8
{
9
    /**
10
     * @ORM\Column(type="string", nullable=true)
11
     */
12
    private $coverFilename;
13
14
    /**
15
     * @ORM\Column(type="string", nullable=true)
16
     */
17
    private $coverMimeType;
18
19
    public function getCoverFilename(): ?string
20
    {
21
        return $this->coverFilename;
22
    }
23
24
    public function setCoverFilename(?string $coverFilename): self
25
    {
26
        $this->coverFilename = $coverFilename;
27
        return $this;
28
    }
29
30
    public function getCoverMimeType(): ?string
31
    {
32
        return $this->coverMimeType;
33
    }
34
35
    public function setCoverMimeType(?string $coverMimeType): self
36
    {
37
        $this->coverMimeType = $coverMimeType;
38
        return $this;
39
    }
40
}
41