<commit_before><?php

/**
 * This file is part of the Krystal Framework
 * 
 * Copyright (c) 2015 <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information, please view
 * the license file that was distributed with this source code.
 */

namespace Krystal\Application\View\Resolver;

final class Module implements ResolverInterface
{
	/**
	 * The name of module directory
	 * 
	 * @var string
	 */
	private $moduleDir;

	/**
	 * Target module the theme belongs to
	 * 
	 * @var string
	 */
	private $module;

	/**
	 * Theme name
	 * 
	 * @var string
	 */
	private $theme;

	/**
	 * Base directory
	 * 
	 * @var string
	 */
	private $baseDir;

	/**
	 * An extension for view templates
	 * 
	 * @var string
	 */
	private $extension = '.phtml';

	/**
	 * State initialization
	 * 
	 * @param $request
	 * @param string $moduleDir
	 * @param string $module
	 * @param string $theme Theme name
	 * @param string $baseDir
	 * @return void
	 */
	public function __construct($request, $moduleDir, $module, $theme, $baseDir = 'View/Template')
	{
		$this->request = $request;
		$this->moduleDir = $moduleDir;
		$this->module = $module;
		$this->theme = $theme;
		$this->baseDir = $baseDir;
	}

	/**
	 * Overrides default extension
	 * 
	 * @param string $extension
	 * @return \Krystal\Application\View\Resolver\Module
	 */
	public function setExtension($extension)
	{
		$this->extension = $extension;
		return $this;
	}
<commit_msg>Added setTheme() and setModule() overrides<commit_after><?php

/**
 * This file is part of the Krystal Framework
 * 
 * Copyright (c) 2015 <NAME> <<EMAIL>>
 * 
 * For the full copyright and license information, please view
 * the license file that was distributed with this source code.
 */

namespace Krystal\Application\View\Resolver;

final class Module implements ResolverInterface
{
	/**
	 * The name of module directory
	 * 
	 * @var string
	 */
	private $moduleDir;

	/**
	 * Target module the theme belongs to
	 * 
	 * @var string
	 */
	private $module;

	/**
	 * Theme name
	 * 
	 * @var string
	 */
	private $theme;

	/**
	 * Base directory
	 * 
	 * @var string
	 */
	private $baseDir;

	/**
	 * An extension for view templates
	 * 
	 * @var string
	 */
	private $extension = '.phtml';

	/**
	 * State initialization
	 * 
	 * @param $request
	 * @param string $moduleDir
	 * @param string $module
	 * @param string $theme Theme name
	 * @param string $baseDir
	 * @return void
	 */
	public function __construct($request, $moduleDir, $module, $theme, $baseDir = 'View/Template')
	{
		$this->request = $request;
		$this->moduleDir = $moduleDir;
		$this->module = $module;
		$this->theme = $theme;
		$this->baseDir = $baseDir;
	}

	/**
	 * Overrides default theme
	 * 
	 * @param string $theme
	 * @return \Krystal\Application\View\Resolver\Module
	 */
	public function setTheme($theme)
	{
		$this->theme = $theme;
		return $this;
	}

	/**
	 * Overrides default module
	 * 
	 * @param string $module
	 * @return \Krystal\Application\View\Resolver\Module
	 */
	public function setModule($module)
	{
		$this->module = $module;
		return $this;
	}

	/**
	 * Overrides default extension
	 * 
	 * @param string $extension
	 * @return \Krystal\Application\View\Resolver\Module
	 */
	public function setExtension($extension)
	{
		$this->extension = $extension;
		return $this;
	}

{'fraction_non_alphanumeric': 0.13453996983408748, 'fraction_numerical': 0.0024132730015082957, 'mean_word_length': 3.05875152998776, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1081010', 'n_tokens_mistral': 1142, 'n_tokens_neox': 999, 'n_words': 302}