-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
48 lines (37 loc) · 1.19 KB
/
index.php
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
require_once "Parc.php";
require_once "Attraction.php";
require_once "SensationsFortes.php";
require_once "Familiale.php";
require_once "PetitGaulois.php";
$asterix = new Parc("Parc Asterix");
$asterix->construireAttraction(new SensationsFortes("Oziris"));
$asterix->construireAttraction(new Familiale("Attention Menhir"));
$asterix->construireAttraction(new PetitGaulois("Lavomatix"));
$asterix->construireAttraction(new SensationsFortes("La Galère"));
$asterix->construireAttraction(new PetitGaulois("Goudurix"));
$asterix->compterAttraction();
$asterix->listerAttraction();
$asterix->reactions();
echo '-------------' . PHP_EOL;
$asterix->AfficherInfo();
$asterix->nettoyer();
$asterix->reparer();
$asterix->salir();
$asterix->salir();
$asterix->salir();
$asterix->salir();
$asterix->salir();
echo '-------------' . PHP_EOL;
$asterix->AfficherInfo();
$lavomatix = $asterix->getAttractionByName("Lavomatix");
$lavomatix->miettes();
$galere = $asterix->getAttractionByName("La Galère");
echo $galere->Info();
$galere->vomi();
$galere->vomi();
$galere->vomi();
$galere->vomi();
$galere->vomi();
echo '-------------' . PHP_EOL;
echo $galere->Info();