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);
|
||
|
}
|
||
|
}
|