Projekt

Obecné

Profil

Stáhnout (576 Bajtů) Statistiky
| Větev: | Revize:
1 03c02899 vastja
<?php
2
3
namespace App\Entity;
4
5
//Todo some checks
6
class DataSet {
7
    protected $time;
8
    protected $date;
9
    protected $type;
10
11
    public function setTime($time) {
12
        $this->time = $time;
13
    }
14
15
    public function getTime() {
16
        return $this->time;
17
    }
18
19
    public function setDate($date) {
20 03ccdd65 vastja
        $this->date = date('Y-m-d', strtotime($date));
21 03c02899 vastja
    }
22
23
    public function getDate() {
24
        return $this->date;
25
    }
26
27
    public function setType($type) {
28
        $this->type = $type;
29
    }
30
31
    public function getType() {
32
        return $this->type;
33
    }
34
}