c7e336fa96
FossilOrigin-Name: fd2e220b6b0f50b860d8887f6149b50756485ee81c7eecef851f476bc3514d31
42 lines
814 B
PHP
42 lines
814 B
PHP
<?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);
|
|
}
|
|
}
|