1 | <?php |
||
8 | class InferSchema extends Schema |
||
9 | { |
||
10 | /** |
||
11 | * InferSchema constructor. |
||
12 | * |
||
13 | * @param null $descriptor optional descriptor object - will be used as an initial descriptor |
||
14 | * @param bool $lenient if true - infer just basic types, without strict format requirements |
||
15 | */ |
||
16 | public function __construct($descriptor = null, $lenient = false) |
||
21 | |||
22 | /** |
||
23 | * @return object |
||
24 | */ |
||
25 | public function descriptor() |
||
29 | |||
30 | /** |
||
31 | * @param mixed[] $row |
||
32 | * |
||
33 | * @return mixed[] |
||
34 | * |
||
35 | * @throws Exceptions\FieldValidationException |
||
36 | */ |
||
37 | public function castRow($row) |
||
55 | |||
56 | public function lock() |
||
62 | |||
63 | protected $isLocked = false; |
||
64 | protected $fieldsInferer; |
||
65 | protected $castRows; |
||
66 | } |
||
67 |