Files
DesignPatternsPHP/Behavioral/ChainOfResponsibilities/Responsible/SlowDatabaseHandler.php
2019-12-14 13:41:03 +01:00

17 lines
481 B
PHP

<?php declare(strict_types=1);
namespace DesignPatterns\Behavioral\ChainOfResponsibilities\Responsible;
use DesignPatterns\Behavioral\ChainOfResponsibilities\Handler;
use Psr\Http\Message\RequestInterface;
class SlowDatabaseHandler extends Handler
{
protected function processing(RequestInterface $request): ?string
{
// this is a mockup, in production code you would ask a slow (compared to in-memory) DB for the results
return 'Hello World!';
}
}