Adefinir
1
game_adefinir
laravel_project
app
Models
Metiers
Specialiste.php
Go to the documentation of this file.
1
<?php
2
namespace
App\Models\Metiers
;
3
4
use app\Models\Employes;
5
6
class
Specialiste
{
7
8
// Nombre d'employés actuellement embauchés
9
private
int
$_nbEmployees = 0;
10
11
// ====================================================================
12
13
//Construct
14
public
function
_construct
() {
15
$this->_nbEmployee = 0;
16
}
17
25
public
function
workOnEducationalContent
(
Employes
$employees ) {
26
$employees->
incrementActionResults
(
"educationalContent"
, $this->_nbEmployees );
27
}
28
36
public
function
hireSpecialiste
() : int {
37
$this->_nbEmployees += 1;
38
return
$this->_nbEmployees;
39
}
40
48
public
function
fireSpecialiste
() : int {
49
if
($this->_nbEmployees != 0){
50
$this->_nbEmployees = $this->_nbEmployees - 1;
51
}
52
return
$this->_nbEmployees;
53
}
54
55
}
App\Models\Employes
Definition:
Employes.php:24
App\Models\Metiers\Specialiste\_construct
_construct()
Definition:
Specialiste.php:14
App\Models\Metiers\Specialiste
Definition:
Specialiste.php:6
App\Models\Employes\incrementActionResults
incrementActionResults(string $varName, int $increment)
Definition:
Employes.php:196
App\Models\Metiers
Definition:
Developpeur.php:2
App\Models\Metiers\Specialiste\fireSpecialiste
fireSpecialiste()
Definition:
Specialiste.php:48
App\Models\Metiers\Specialiste\hireSpecialiste
hireSpecialiste()
Definition:
Specialiste.php:36
App\Models\Metiers\Specialiste\workOnEducationalContent
workOnEducationalContent(Employes $employees)
Definition:
Specialiste.php:25
Generated by
1.8.20