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