protected function checkEntityIsInConfig(): void
    {
        if (empty($this->configEntities)) {
            throw new NeuralyzerConfigurationException(
                'No entities found. Have you loaded a configuration file ?'
            );
        }
        if (!array_key_exists($this->entity, $this->configEntities)) {
            throw new NeuralyzerConfigurationException(
                "No configuration for that entity ({$this->entity})"
            );
        }
    }
protected function checkEntityIsInConfig(): void
    {
        if (empty($this->configEntities)) {
            throw new NeuralyzerConfigurationException(
                'No entities found. Have you loaded a configuration file ?'
            );
        }
        if (!array_key_exists($this->entity, $this->configEntities)) {
            throw new NeuralyzerConfigurationException(
                "No configuration for that entity ({$this->entity})"
            );
        }
    }
protected function checkEntityIsInConfig ( ) : void { if ( empty ( $ this -> configEntities ) ) { throw new NeuralyzerConfigurationException ( 'No entities found. Have you loaded a configuration file ?' ) ; } if ( ! array_key_exists ( $ this -> entity , $ this -> configEntities ) ) { throw new NeuralyzerConfigurationException ( "No configuration for that entity ({$this->entity})" ) ; } }
Make sure that entity is defined in the configuration

@throws NeuralyzerConfigurationException
Make sure that entity is defined in the configuration