| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function buildUpdateQueryBySchemaName($schemaName) |
||
| 40 | { |
||
| 41 | if (!is_string($schemaName)) { |
||
|
|
|||
| 42 | throw new \InvalidArgumentException('Argument $schemaName must be a string'); |
||
| 43 | } |
||
| 44 | |||
| 45 | $schema = $this->config->getSchemaByName($schemaName); |
||
| 46 | if (!$schema) { |
||
| 47 | throw new SchemaNotFoundException( |
||
| 48 | sprintf('Schema "%s" is not found', $schemaName) |
||
| 49 | ); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $this->buildUpdateQuery($schema); |
||
| 53 | } |
||
| 68 | } |