condorrocks/condor

View on GitHub
app/CONDOR/Feeder.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Condor;

abstract class Feeder
{
    abstract public function feed();

    abstract public function getSnapshot();

    public function run()
    {
        try {
            $this->feed();
        } catch (\Exception $e) {
            logger()->error('Exception during Feed: '.$e->getMessage());
        }

        return $this;
    }
}