<?php

class Contribution {

    var $id;
    var $ref;
    var $per_ID;
    var $type;
    var $date;
    var $due_date;
    var $bank;
    var $memo;
    var $inactive;
    var $allocs;

    function __construct() {
        $this->allocs = array();
        $this->id = '';
        $this->ref = '';
        $this->per_ID = '';
        $this->type = '';
        $this->date = '';
        $this->due_date = '';
        $this->bank = '';
        $this->memo = '';
        $this->inactive = '';
    }

}

class Alloc{
    var $id;
    var $contribution_id;
    var $project;
    var $amount;
    var $paid_amt;
    var $pledged_amt;
    var $inactive;
    var $group;
    function __construct($id, $contribution_id, $project, $amount, $paid_amt, $inactive, $pledged_amt, $group) {
        $this->id = $id;
        $this->contribution_id = $contribution_id;
        $this->project = $project;
        $this->amount = $amount;
        $this->paid_amt = $paid_amt;
        $this->inactive = $inactive;
        $this->pledged_amt = $pledged_amt;
        $this->group = $group;
    }

}