| 1 | <?php |
||
| 8 | class RegexpObscuredStrategy implements StrategyInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $pattern; |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $replacement; |
||
| 18 | |||
| 19 | 12 | public function __construct(string $pattern, string $replacement = '') |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | 9 | public function extract($value) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | public function hydrate($value) |
||
| 44 | } |
||
| 45 |