protected function & setCoreClass ($newCoreClassName, $coreClassVar, $coreClassInterface) {
		if (call_user_func(
			[$this->toolClass, 'CheckClassInterface'], 
			$newCoreClassName, $coreClassInterface, TRUE, TRUE // check static methods and throw an exception if false
		)) $this->$coreClassVar = $newCoreClassName;
		/** @var $this \MvcCore\Application */
		return $this;
	}
protected function & setCoreClass ($newCoreClassName, $coreClassVar, $coreClassInterface) {
		if (call_user_func(
			[$this->toolClass, 'CheckClassInterface'], 
			$newCoreClassName, $coreClassInterface, TRUE, TRUE // check static methods and throw an exception if false
		)) $this->$coreClassVar = $newCoreClassName;
		/** @var $this \MvcCore\Application */
		return $this;
	}
protected function & setCoreClass ( $ newCoreClassName , $ coreClassVar , $ coreClassInterface ) { if ( call_user_func ( [ $ this -> toolClass , 'CheckClassInterface' ] , $ newCoreClassName , $ coreClassInterface , TRUE , TRUE // check static methods and throw an exception if false ) ) $ this -> $ coreClassVar = $ newCoreClassName ; /** @var $this \MvcCore\Application */ return $ this ; }
Set core class name only if given class string implements
given core interface, else thrown an exception.
@param string $newCoreClassName
@param string $coreClassVar
@param string $coreClassInterface
@throws \Exception
@return \MvcCore\Application
Set core class name only if given class string implements given core interface else thrown an exception .