use Org\Mxchange\CoreFramework\Response\Responseable;
use Org\Mxchange\CoreFramework\Result\Search\SearchableResult;
use Org\Mxchange\CoreFramework\Task\Taskable;
+use Org\Mxchange\CoreFramework\Traits\Criteria\Local\LocalSearchCriteriaTrait;
use Org\Mxchange\CoreFramework\Traits\Crypto\CryptoTrait;
use Org\Mxchange\CoreFramework\Traits\Database\Frontend\DatabaseFrontendTrait;
use Org\Mxchange\CoreFramework\Traits\State\StateableTrait;
// Load traits
use CryptoTrait;
use DatabaseFrontendTrait;
+ use LocalSearchCriteriaTrait;
use StateableTrait;
// Exception constants
return $this->listenerPoolInstance;
}
- /**
- * Setter for search instance
- *
- * @param $searchInstance Searchable criteria instance
- * @return void
- */
- public final function setSearchInstance (LocalSearchCriteria $searchInstance) {
- $this->searchInstance = $searchInstance;
- }
-
- /**
- * Getter for search instance
- *
- * @return $searchInstance Searchable criteria instance
- */
- public final function getSearchInstance () {
- return $this->searchInstance;
- }
-
/**
* Setter for node id
*
* @return void
* @todo This method is old code and needs heavy rewrite and should be moved to ApplicationHelper
*/
- public static final function exitApplication (string $message = '', int $code = -1, string $extraData = '', bool $silentMode = false) {
+ public static final function exitApplication (string $message = '', int $code = -1, string $extraData = '', bool $silentMode = false): void {
// Is this method already called?
//* NOISY-DEBUG: */ printf('[%s:%d]: message=%s,code=%d,extraData=%s,silentMode=%d - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $message, $code, $extraData, intval($silentMode));
if (isset($GLOBALS['app_die_called'])) {
*
* @return $frameworkPath Path for framework
*/
- public static final function detectFrameworkPath () {
+ public static final function detectFrameworkPath (): string {
// Is it not set?
//* NOISY-DEBUG: */ printf('[%s:%d]: self::frameworkPath=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, self::$frameworkPath);
if (empty(self::$frameworkPath)) {
*
* @return $rootPath Root path
*/
- public static function getRootPath () {
+ public static function getRootPath (): string {
// Get __DIR__, really simple and no detection
return __DIR__;
}
*
* @return void
*/
- public static final function main () {
+ public static final function main (): void {
// Load bootstrap file
//* NOISY-DEBUG: */ printf('[%s:%d]: CALLED!' . PHP_EOL, __METHOD__, __LINE__);
require sprintf('%sbootstrap%sbootstrap.inc.php', self::detectFrameworkPath(), DIRECTORY_SEPARATOR);