original_string: protected function checkAttributeAssignable($attribute): void
      {
          if ( ! $this->exceptionOnUnknown || empty($this->known)) {
              // @codeCoverageIgnoreStart
              return;
              // @codeCoverageIgnoreEnd
          }
  
          if (is_array($attribute)) {
  
              foreach ($attribute as $singleAttribute) {
                  $this->checkAttributeAssignable($singleAttribute);
              }
  
              return;
          }
  
          if ( ! in_array($attribute, $this->known, true)) {
              throw (new ModelConfigurationDataException(
                  "Unknown model configuration data key: '{$attribute}' in " . get_class($this)
              ))
                  ->setDotKey($attribute);
          }
      }
code: protected function checkAttributeAssignable($attribute): void
      {
          if ( ! $this->exceptionOnUnknown || empty($this->known)) {
              // @codeCoverageIgnoreStart
              return;
              // @codeCoverageIgnoreEnd
          }
  
          if (is_array($attribute)) {
  
              foreach ($attribute as $singleAttribute) {
                  $this->checkAttributeAssignable($singleAttribute);
              }
  
              return;
          }
  
          if ( ! in_array($attribute, $this->known, true)) {
              throw (new ModelConfigurationDataException(
                  "Unknown model configuration data key: '{$attribute}' in " . get_class($this)
              ))
                  ->setDotKey($attribute);
          }
      }
code_tokens: protected function checkAttributeAssignable ( $ attribute ) : void { if ( ! $ this -> exceptionOnUnknown || empty ( $ this -> known ) ) { // @codeCoverageIgnoreStart return ; // @codeCoverageIgnoreEnd } if ( is_array ( $ attribute ) ) { foreach ( $ attribute as $ singleAttribute ) { $ this -> checkAttributeAssignable ( $ singleAttribute ) ; } return ; } if ( ! in_array ( $ attribute , $ this -> known , true ) ) { throw ( new ModelConfigurationDataException ( "Unknown model configuration data key: '{$attribute}' in " . get_class ( $ this ) ) ) -> setDotKey ( $ attribute ) ; } }
docstring: Overridden to use for known nested attribute checks
  
  {@inheritdoc}
  @throws ModelConfigurationDataException
docstring_tokens: Overridden to use for known nested attribute checks