| Total Complexity | 7 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 65 | } |
||
| 66 | |||
| 67 | public function setVersion(string $version): self |
||
| 72 | } |
||
| 73 | } |
||
| 74 |