barracudanetworks/jobrunner

View on GitHub
examples/Complainer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Barracuda\JobRunner\Examples;

use Psr\Log\LoggerInterface;
use Barracuda\JobRunner\Job;

class Complainer extends Job
{
    public function __construct(LoggerInterface $logger = null)
    {
        parent::__construct($logger);
    }

    public function start()
    {
        echo "[{$this->getShortName()}] I am hungry!" . PHP_EOL;
    }
}