li3_docs\doc\Docblock::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'comment' string: Required docblock source code.

Source

	public function __construct(array $config = []) {
		$config += [
			'comment' => null
		];
		if (!$config['comment']) {
			throw new ConfigException("No docblock source in `'comment'` given.");
		}
		$this->_parse($config['comment']);
	}