Tax example

class TaxHydrator extends Hydrator
{
    /** * Creates a new tax struct and assigns the passed * data array. * * @return Tax */
    public function hydrate(array $data)
    {
        $tax = new Tax();

        $tax->setId((int) $data['__tax_id']);
        $tax->setName($data['__tax_description']);
        $tax->setTax((float) $data['__tax_tax']);

        return $tax;
    }

    /** * Creates a new tax struct and assigns the passed * data array. * * @return Tax */
Home | Imprint | This part of the site doesn't use cookies.