blob: 2be89c05da0d37313974454fb7514113dddd1707 (
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
47
48
|
<?php
// model/CESU.php
class CESU extends Model
{
//~ const TABLE = 'cesu';
// lecture des données ou hydratation
private $ID_cesu;
private $taches;
private $duree_travail;
private $salaire;
use ModelChildren;
public function __construct(int $client_ID)
{
parent::__construct($client_ID);
$this->type == 'cesu';
}
// setters
public function setIDCesu(int $value)
{
$this->ID_cesu = $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);
}
}
|