original_string: private function createConfigurationInstance(
          $configurationIdentifier,
          $configurationNamespace,
          $configurationKey,
          $configurationValue
      ) {
          /**
           * Value is not found on database. We can just check if the value is
           * defined in the configuration elements, and we can generate new entry
           * for our database.
           */
          if (!$this->configurationElements[$configurationIdentifier]) {
              throw new ConfigurationParameterNotFoundException();
          }
  
          $configurationType = $this->configurationElements[$configurationIdentifier]['type'];
  
          $configurationValue = $this
              ->serializeValue(
                  $configurationValue,
                  $configurationType
              );
  
          $configurationEntity = $this
              ->configurationFactory
              ->create()
              ->setKey($configurationKey)
              ->setNamespace($configurationNamespace)
              ->setName($this->configurationElements[$configurationIdentifier]['name'])
              ->setType($configurationType)
              ->setValue($configurationValue);
  
          return $configurationEntity;
      }
code: private function createConfigurationInstance(
          $configurationIdentifier,
          $configurationNamespace,
          $configurationKey,
          $configurationValue
      ) {
          /**
           * Value is not found on database. We can just check if the value is
           * defined in the configuration elements, and we can generate new entry
           * for our database.
           */
          if (!$this->configurationElements[$configurationIdentifier]) {
              throw new ConfigurationParameterNotFoundException();
          }
  
          $configurationType = $this->configurationElements[$configurationIdentifier]['type'];
  
          $configurationValue = $this
              ->serializeValue(
                  $configurationValue,
                  $configurationType
              );
  
          $configurationEntity = $this
              ->configurationFactory
              ->create()
              ->setKey($configurationKey)
              ->setNamespace($configurationNamespace)
              ->setName($this->configurationElements[$configurationIdentifier]['name'])
              ->setType($configurationType)
              ->setValue($configurationValue);
  
          return $configurationEntity;
      }
code_tokens: private function createConfigurationInstance ( $ configurationIdentifier , $ configurationNamespace , $ configurationKey , $ configurationValue ) { /**
           * Value is not found on database. We can just check if the value is
           * defined in the configuration elements, and we can generate new entry
           * for our database.
           */ if ( ! $ this -> configurationElements [ $ configurationIdentifier ] ) { throw new ConfigurationParameterNotFoundException ( ) ; } $ configurationType = $ this -> configurationElements [ $ configurationIdentifier ] [ 'type' ] ; $ configurationValue = $ this -> serializeValue ( $ configurationValue , $ configurationType ) ; $ configurationEntity = $ this -> configurationFactory -> create ( ) -> setKey ( $ configurationKey ) -> setNamespace ( $ configurationNamespace ) -> setName ( $ this -> configurationElements [ $ configurationIdentifier ] [ 'name' ] ) -> setType ( $ configurationType ) -> setValue ( $ configurationValue ) ; return $ configurationEntity ; }
docstring: Creates a new configuration instance and serializes.
  
  @param string $configurationIdentifier Configuration identifier
  @param string $configurationNamespace  Configuration namespace
  @param string $configurationKey        Configuration key
  @param mixed  $configurationValue      Configuration value
  
  @return ConfigurationInterface New Configuration created
  
  @throws ConfigurationParameterNotFoundException Configuration parameter not found
docstring_tokens: Creates a new configuration instance and serializes .