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