src/SourceAdapters/SourceAdapterFactory.php
public function setAdapterForPattern($adapter_class, $source_pattern)
    {
        $this->validateAdapterClass($adapter_class);
        $this->pattern_adapters[$source_pattern] = $adapter_class;
    }
public function setAdapterForPattern($adapter_class, $source_pattern)
    {
        $this->validateAdapterClass($adapter_class);
        $this->pattern_adapters[$source_pattern] = $adapter_class;
    }
public function setAdapterForPattern ( $ adapter_class , $ source_pattern ) { $ this -> validateAdapterClass ( $ adapter_class ) ; $ this -> pattern_adapters [ $ source_pattern ] = $ adapter_class ; }
Specify the FQCN of a SourceAdapter class to use when the source is a string matching the given pattern.
@param string $adapter_class
@param string $source_pattern
@return void
Specify the FQCN of a SourceAdapter class to use when the source is a string matching the given pattern .