<commit_before><?php

namespace Devless\RulesEngine;

use App\Helpers\Helper;
use App\Helpers\ActionClass;
use App\Helpers\DevlessHelper;

class Rules
{


    private $assertion = [
        "elseWhenever" => false,
        "whenever"     => false,
        "otherwise"   => false,


    ];


    private $called = [
        "elseWhenever" => false,
        "whenever"     => false,
        "otherwise"   => false,


    ];


    private $results = '';
    private $answered = false;

    private $execOrNot = true;
    private $actionType = '';

    private $tableName = '';

    public function requestType($requestPayload)
    {
        $tableName = DevlessHelper::get_tablename_from_payload($requestPayload);
        $actionType = $requestPayload['method'];

        $this->actionType = $actionType;
        $this->tableName  = $tableName;
        return $this;
    }<commit_msg>make output results from rules accessible from within Rules<commit_after><?php

namespace Devless\RulesEngine;

use App\Helpers\Helper;
use App\Helpers\ActionClass;
use App\Helpers\DevlessHelper;

class Rules
{


    private $assertion = [
        "elseWhenever" => false,
        "whenever"     => false,
        "otherwise"   => false,


    ];


    private $called = [
        "elseWhenever" => false,
        "whenever"     => false,
        "otherwise"   => false,


    ];


    public $results = '';
    private $answered = false;

    private $execOrNot = true;
    private $actionType = '';

    private $tableName = '';

    public function requestType($requestPayload)
    {
        $tableName = DevlessHelper::get_tablename_from_payload($requestPayload);
        $actionType = $requestPayload['method'];

        $this->actionType = $actionType;
        $this->tableName  = $tableName;
        return $this;
    }
{'fraction_non_alphanumeric': 0.12506917542888765, 'fraction_numerical': 0.0, 'mean_word_length': 2.5106796116504855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1448034', 'n_tokens_mistral': 553, 'n_tokens_neox': 519, 'n_words': 112}