summaryrefslogtreecommitdiff
path: root/src/model/CESU.php
blob: 4679da2cc487bab150dd3420226c6562a63d5e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
// model/CESU.php

class CESU extends Model
{
    const TABLE = 'cesu';
    
    // lecture des données ou hydratation
    private $ID;
    private $ID_presta;
    private $taches;
    private $duree_travail;
    private $salaire;
    
    public function __construct()
    {
        $this->table = self::TABLE; // => Model::$table
    }
    
    // setters
    public function setID(int $value)
    {
        $this->ID = $value;
        return($this);
    }
    public function setIDPresta(int $value)
    {
        $this->ID_presta = $value;
        return($this);
    }
    public function setTaches(string $value)
    {
        $this->taches = $value;
        return($this);
    }
    public function setDureeTravail(string $value)
    {
        $this->duree_travail = $value;
        return($this);
    }
    public function setSalaire(float $value)
    {
        $this->salaire = $value;
        return($this);
    }
}