1 | <?php |
||
12 | class PostgresqlValidator implements ForeignKeyValidatorInterface |
||
13 | { |
||
14 | /** |
||
15 | * Check that the foreign key hash matches the specified resource. |
||
16 | * |
||
17 | * @param string $rowHash The hash of data from the CSV row to be validated. |
||
18 | * @param string $referenceResource The reference resource. |
||
19 | * @param array $referenceFields The reference fields. |
||
20 | * |
||
21 | * @return boolean Is the data valid. |
||
22 | * |
||
23 | * @throws \Exception if the foreign key couldn't be validated. |
||
24 | */ |
||
25 | 73 | public function validate($rowHash, $referenceResource, array $referenceFields) |
|
47 | } |
||
48 |