Skip to content
Snippets Groups Projects
Commit 64983ddb authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

Fin de TP4 ex6.

parent 029a49fb
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,14 @@ require_once "Objet.php";
*/
class Objet
{
public function __construct($data = null)
{
if(!is_null($data)){
foreach ($data as $key => $value){
$this->$key = $value;
}
}
}
/**
* @param $name
* @return mixed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment