69 if ( $this->keys !== $expectedKeys ) {
70 $extraKeys = array_diff( $this->keys, $expectedKeys );
71 $missingKeys = array_diff( $expectedKeys, $this->keys );
72 Assert::precondition( !$extraKeys && !$missingKeys,
75 ?
'Unsupported options passed: ' . implode(
', ', $extraKeys ) .
'!'
77 ) . ( $extraKeys && $missingKeys ?
' ' :
'' ) . (
79 ?
'Required options missing: ' . implode(
', ', $missingKeys ) .
'!'