suppression fonctions inutiles ; ajout fichiers oubliés

FossilOrigin-Name: fd2e220b6b0f50b860d8887f6149b50756485ee81c7eecef851f476bc3514d31
This commit is contained in:
engel 2022-02-19 10:16:24 +00:00
parent c221014650
commit c7e336fa96
9 changed files with 77 additions and 227 deletions

33
lib/Activite.php Normal file
View file

@ -0,0 +1,33 @@
<?php
namespace Garradin\Plugin\RecusFiscaux;
/*
* information d'une activité
*/
class Activite
{
public $id;
public $label;
public $description;
public function __construct(
$id,
$label,
$description)
{
$this->id = $id;
$this->label = $label;
$this->description = $description;
}
/*
* @return instance de Activite initialisée avec l'objet o
*/
public static function copier($o)
{
return new Activite(
$o->id,
$o->label,
$o->description);
}
}