PHP Class League\HTMLToMarkdown\Environment

Show file Open project: nickcernis/html-to-markdown

Protected Properties

Property Type Description
$config League\HTMLToMarkdown\Configuration
$converters League\HTMLToMarkdown\Converter\ConverterInterface[]

Public Methods

Method Description
__construct ( array $config = [] )
addConverter ( League\HTMLToMarkdown\Converter\ConverterInterface $converter )
createDefaultEnvironment ( array $config = [] ) : Environment
getConfig ( ) : League\HTMLToMarkdown\Configuration
getConverterByTag ( string $tag ) : League\HTMLToMarkdown\Converter\ConverterInterface

Method Details

__construct() public method

public __construct ( array $config = [] )
$config array

addConverter() public method

public addConverter ( League\HTMLToMarkdown\Converter\ConverterInterface $converter )
$converter League\HTMLToMarkdown\Converter\ConverterInterface

createDefaultEnvironment() public static method

public static createDefaultEnvironment ( array $config = [] ) : Environment
$config array
return Environment

getConfig() public method

public getConfig ( ) : League\HTMLToMarkdown\Configuration
return League\HTMLToMarkdown\Configuration

getConverterByTag() public method

public getConverterByTag ( string $tag ) : League\HTMLToMarkdown\Converter\ConverterInterface
$tag string
return League\HTMLToMarkdown\Converter\ConverterInterface

Property Details

$config protected property

protected Configuration,League\HTMLToMarkdown $config
return League\HTMLToMarkdown\Configuration

$converters protected property

protected ConverterInterface[],League\HTMLToMarkdown\Converter $converters
return League\HTMLToMarkdown\Converter\ConverterInterface[]