protected function parseStub( $stub, $replacements = [] )
	{
		$output = $stub;

		foreach ( $replacements as $key => $replacement )
		{
			$search = '{{' . $key . '}}';
			$output = str_replace( $search, $replacement, $output );
		}

		return $output;
	}
protected function parseStub( $stub, $replacements = [] )
	{
		$output = $stub;

		foreach ( $replacements as $key => $replacement )
		{
			$search = '{{' . $key . '}}';
			$output = str_replace( $search, $replacement, $output );
		}

		return $output;
	}
protected function parseStub ( $ stub , $ replacements = [ ] ) { $ output = $ stub ; foreach ( $ replacements as $ key => $ replacement ) { $ search = '{{' . $ key . '}}' ; $ output = str_replace ( $ search , $ replacement , $ output ) ; } return $ output ; }
Parse the provided stub and replace via the array given.

@param string $stub
@param string $replacements
@return string
Parse the provided stub and replace via the array given .