Files
DesignPatternsPHP/Creational/Pool/StringReverseWorker.php
2019-12-14 13:41:03 +01:00

21 lines
324 B
PHP

<?php declare(strict_types=1);
namespace DesignPatterns\Creational\Pool;
use DateTime;
class StringReverseWorker
{
private DateTime $createdAt;
public function __construct()
{
$this->createdAt = new DateTime();
}
public function run(string $text)
{
return strrev($text);
}
}