-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro.php
45 lines (32 loc) · 1.08 KB
/
intro.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
<?php
/**
* Created by PhpStorm.
* User: Human Booster
* Date: 30/05/2017
* Time: 16:27
*/
include 'Classes/Personne.php';
include 'Classes/Stagiaire.php';
try {
$personne = new Personne('Donald');
/*
$personne = new Personne('Donald');
echo $personne->setFirstName("James")->setLastName("Bond")->getFirstName() . "</br>";
//echo $personne->setPopulation("100") . "<br>";
echo $personne->getPopulation() . "</br>";
echo $personne->getConstants() . "</br>";
$personne2 = new Personne('Ronald');
echo $personne->getPopulation() . " | " . $personne2->getPopulation() . "</br>";
echo "Static function : " . \Personne::getStatisPopulation() . "</br>";
var_dump($personne);
var_dump($personne2);
*/
/////////////////////////////////////////////
$stagiaire = new Stagiaire("Symfony2", "Fabrice");
var_dump($stagiaire);
echo $personne->parler("Hi there !");
echo $stagiaire->parler("Hi there !");
echo $stagiaire->testVisibility();
} catch (Exception $ex) {
echo "ERROR " . $ex->getMessage();
}