for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tleckie\DesignPatterns\Decorator;
/**
* Class TextNormalize
*
* @package Tleckie\DesignPatterns\Decorator
* @author Teodoro Leckie Westberg <[email protected]>
*/
class TextNormalize implements NormalizeInterface
{
/** @var NormalizeInterface */
protected NormalizeInterface $normalize;
* TextNormalize constructor.
* @param NormalizeInterface $normalize
public function __construct(NormalizeInterface $normalize)
$this->normalize = $normalize;
}
* @param string $text
* @return string
public function normalize(string $text): string
return $this->normalize->normalize($text);