| 1 | <?php | ||
| 18 | class Encode extends FilterRule | ||
| 19 | { | ||
| 20 | /** | ||
| 21 | * @var string | ||
| 22 | */ | ||
| 23 | protected $toEncoding; | ||
| 24 | |||
| 25 | /** | ||
| 26 | * @var string|null | ||
| 27 | */ | ||
| 28 | protected $fromEncoding; | ||
| 29 | |||
| 30 | /** | ||
| 31 | * @param string|null $toEncoding | ||
| 32 | * @param string|null $fromEncoding | ||
| 33 | */ | ||
| 34 | 5 | public function __construct($toEncoding = null, $fromEncoding = null) | |
| 43 | |||
| 44 | /** | ||
| 45 | * Changes encoding of the value | ||
| 46 | * | ||
| 47 | * @param mixed $value | ||
| 48 | * @return string | ||
| 49 | */ | ||
| 50 | 5 | public function filter($value) | |
| 62 | } | ||
| 63 |