19 lines
321 B
PHP
19 lines
321 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Text\Replacer;
|
||
|
|
||
|
class StaticReplacer implements ReplacerInterface
|
||
|
{
|
||
|
private string $replace;
|
||
|
|
||
|
public function __construct(string $replace)
|
||
|
{
|
||
|
$this->replace = $replace;
|
||
|
}
|
||
|
|
||
|
public function generateReplace(string $locale): string
|
||
|
{
|
||
|
return $this->replace;
|
||
|
}
|
||
|
}
|