suppression fonctions inutiles ; ajout fichiers oubliés
FossilOrigin-Name: fd2e220b6b0f50b860d8887f6149b50756485ee81c7eecef851f476bc3514d31
This commit is contained in:
parent
c221014650
commit
c7e336fa96
9 changed files with 77 additions and 227 deletions
41
lib/Tarif.php
Normal file
41
lib/Tarif.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin\Plugin\RecusFiscaux;
|
||||
/*
|
||||
* information d'un tarif
|
||||
*/
|
||||
class Tarif
|
||||
{
|
||||
public $id;
|
||||
public $idActivite; // activité associée
|
||||
public $label;
|
||||
public $description;
|
||||
public $montant;
|
||||
|
||||
public function __construct(
|
||||
$id,
|
||||
$idActivite,
|
||||
$label,
|
||||
$description,
|
||||
$montant)
|
||||
{
|
||||
$this->id = $id;
|
||||
$this->idActivite = $idActivite;
|
||||
$this->label = $label;
|
||||
$this->description = $description;
|
||||
$this->montant = $montant;
|
||||
}
|
||||
|
||||
/*
|
||||
* @return instance de Tarif initialisée avec l'objet o
|
||||
*/
|
||||
public static function copier($o)
|
||||
{
|
||||
return new Tarif(
|
||||
$o->id,
|
||||
$o->idActivite,
|
||||
$o->label,
|
||||
$o->description,
|
||||
$o->montant);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue