final public function canAggregateWithRepository(Repository $repository, Collection $collection)
    {
        $specificAggregate = $repository->getRepositorySpecificAggregate($this);

        if ($specificAggregate) {
            return $specificAggregate->canCalculateByRepository($repository, $collection);
        }

        return false;
    }
final public function canAggregateWithRepository(Repository $repository, Collection $collection)
    {
        $specificAggregate = $repository->getRepositorySpecificAggregate($this);

        if ($specificAggregate) {
            return $specificAggregate->canCalculateByRepository($repository, $collection);
        }

        return false;
    }
final public function canAggregateWithRepository ( Repository $ repository , Collection $ collection ) { $ specificAggregate = $ repository -> getRepositorySpecificAggregate ( $ this ) ; if ( $ specificAggregate ) { return $ specificAggregate -> canCalculateByRepository ( $ repository , $ collection ) ; } return false ; }
Checks if this aggregate can be calculated using it's repository

@param \Rhubarb\Stem\Repositories\Repository $repository
@param Collection $collection
@return bool
Checks if this aggregate can be calculated using it s repository