Download   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 61
rs 10
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getProvider() 0 3 1
A getId() 0 3 1
A getVersion() 0 3 1
A setDate() 0 5 1
A setVersion() 0 5 1
A getDate() 0 3 1
A setProvider() 0 5 1
1
<?php
2
3
namespace App\Document;
4
5
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
6
7
/**
8
 * @MongoDB\Document(repositoryClass="App\Repositories\DownloadRepository")
9
 * @MongoDB\HasLifecycleCallbacks
10
 */
11
class Download
12
{
13
    /**
14
     * @MongoDB\Id
15
     */
16
    protected $id;
17
18
    /**
19
     * @MongoDB\Field(type="date")
20
     */
21
    protected $date;
22
23
    /**
24
     * @MongoDB\Field(type="string")
25
     */
26
    protected $provider;
27
28
    /**
29
     * @MongoDB\Field(type="string")
30
     */
31
    protected $version;
32
33
    public function getId(): string
34
    {
35
        return $this->id;
36
    }
37
38
    public function getDate(): \DateTime
39
    {
40
        return $this->date;
41
    }
42
43
    public function setDate(\DateTime $date): self
44
    {
45
        $this->date = $date;
46
47
        return $this;
48
    }
49
50
    public function getProvider(): string
51
    {
52
        return $this->provider;
53
    }
54
55
    public function setProvider(string $provider): self
56
    {
57
        $this->provider = $provider;
58
59
        return $this;
60
    }
61
62
    public function getVersion(): string
63
    {
64
        return $this->version;
65
    }
66
67
    public function setVersion(string $version): self
68
    {
69
        $this->version = $version;
70
71
        return $this;
72
    }
73
}
74