SAREhub/PHP_Commons

View on GitHub
src/SAREhub/Commons/Service/Service.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace SAREhub\Commons\Service;

use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;

interface Service extends LoggerAwareInterface
{

    /**
     * Executed for start service.
     */
    public function start();

    /**
     * Executed on every service tick.
     */
    public function tick();

    /**
     * Executed for stop service
     */
    public function stop();

    /**
     * @return boolean
     */
    public function isStarted();

    /**
     * @return boolean
     */
    public function isStopped();

    /**
     * @return boolean
     */
    public function isRunning();

    /**
     * @return LoggerInterface
     */
    public function getLogger();
}