| 1 | <?php |
||
| 7 | final class NumberConverter implements Preprocessor |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | private $transformTargets; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var mixed |
||
| 16 | */ |
||
| 17 | private $nonNumericPlaceholder; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param mixed $nonNumericPlaceholder |
||
| 21 | */ |
||
| 22 | public function __construct(bool $transformTargets = false, $nonNumericPlaceholder = null) |
||
| 27 | |||
| 28 | public function fit(array $samples, ?array $targets = null): void |
||
| 32 | |||
| 33 | public function transform(array &$samples, ?array &$targets = null): void |
||
| 47 | } |
||
| 48 |