<?php

namespace Internetgalerie\IgDatapoolFe\ViewHelpers;

/**
 * Provides an interface for aggregators like tabs and fieldsets
 */
interface AggregateInterface
{
    /**
     * Add an aggregate to the collection
     *
     * @param  Internetgalerie\IgDatapoolFe\ViewHelpers\Aggregate $agg
     * @return void
     */
    public function addAggregate(AggregateInterface $agg);

    /**
     * Check children for errorous fields
     *
     * @return bool;
     */
    public function hasError();
}
