src/Aggregator/AggregateResult.php
public static function get(AggregatorInterface $aggregator)
    {
        $config = $aggregator->getConfig();

        $query = $config->getTable()->find('all');
        $query = $aggregator->applyConditions($query);
        $query = static::join($aggregator, $query);

        $entity = $query->first();
        if (null === $entity) {
            return '';
        }

        return $aggregator->getResult($entity);
    }
public static function get(AggregatorInterface $aggregator)
    {
        $config = $aggregator->getConfig();

        $query = $config->getTable()->find('all');
        $query = $aggregator->applyConditions($query);
        $query = static::join($aggregator, $query);

        $entity = $query->first();
        if (null === $entity) {
            return '';
        }

        return $aggregator->getResult($entity);
    }
public static function get ( AggregatorInterface $ aggregator ) { $ config = $ aggregator -> getConfig ( ) ; $ query = $ config -> getTable ( ) -> find ( 'all' ) ; $ query = $ aggregator -> applyConditions ( $ query ) ; $ query = static :: join ( $ aggregator , $ query ) ; $ entity = $ query -> first ( ) ; if ( null === $ entity ) { return '' ; } return $ aggregator -> getResult ( $ entity ) ; }
Aggregator execution method.

@param \CsvMigrations\Aggregator\AggregatorInterface $aggregator Aggregator instance
@return mixed
Aggregator execution method .