public static function inicializar($params) { $entregaDirecta = new self(); $entregaDirecta->setId($params['id']); $entregaDirecta->setEntidad_receptora_id($params['entidad_receptora_id']); $entregaDirecta->setFecha($params['fecha']); $entregaDirecta->setBaja($params['baja']); return $entregaDirecta; }
public static function inicializar($params) { $turnoEntrega = new self(); $turnoEntrega->setId($params['id']); $turnoEntrega->setFecha($params['fecha']); $turnoEntrega->setHora($params['hora']); $turnoEntrega->setBaja($params['baja']); return $turnoEntrega; }