Kolyunya/string-processor

View on GitHub
sources/Purify/PunctuationStripper.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Kolyunya\StringProcessor\Purify;

use Kolyunya\StringProcessor\Purify\BasePurifier;

/**
 * Processor which strips punctuation characters.
 * @author Kolyunya
 */
class PunctuationStripper extends BasePurifier
{
    /**
     * @inheritdoc
     */
    protected function getPattern()
    {
        $pattern = '/[[:punct:]]/u';
        return $pattern;
    }
}