<commit_before><?php

namespace denbora\R_T_G_Services\services;

use denbora\R_T_G_Services\R_T_G_ServiceException;

class PlayerService extends ServiceBase implements ServiceInterface
{

    /**
     * @param $serviceMethod string
     * @param $data
     * @return mixed
     * @throws R_T_G_ServiceException
     */
    public function call(string $serviceMethod, $data)
    {
        if (in_array($serviceMethod, $this->classMethods)) {
            try {
                $service = $this->$serviceMethod($data);

                return $service;
            } catch (\SoapFault $e) {
                echo "<h2>Soap Error</h2>";
                echo $e->getMessage();
            }
        } else {
            throw new R_T_G_ServiceException($serviceMethod .' does not exist');
        }
    }

    /**
     * Activates a given player in the casino.
     *
     * @param array $args
     * @return object
     */
    protected function activatePlayer($args)
    {
        $this->service('ActivatePlayer', $args);
    }

    /**
     * The getPlayer method retrieves all the information of a specific player based on its Player ID (PID)
     *
     * @param string $PID
     * @return object
     */
    protected function getPlayer(string $PID)
    {
        $this->service('getPlayer', array($PID));
    }


    /**
     * This method retrieves all players in the casino based on their sign up date.
     *
     * @param array $args
     * @return object
     */
    protected function getPlayers($args)
    {
        $this->service('getPlayers', $args);
    }
}
<commit_msg>RTGS-8 Player Service : Get Info added all services to PlayerService<commit_after><?php

namespace denbora\R_T_G_Services\services;

use denbora\R_T_G_Services\R_T_G_ServiceException;

class PlayerService extends ServiceBase implements ServiceInterface
{

    /**
     * @param $serviceMethod string
     * @param $data
     * @return mixed
     * @throws R_T_G_ServiceException
     */
    public function call(string $serviceMethod, $data)
    {
        if (in_array($serviceMethod, $this->classMethods)) {
            try {
                $service = $this->$serviceMethod($data);

                return $service;
            } catch (\SoapFault $e) {
                echo "<h2>Soap Error</h2>";
                echo $e->getMessage();
            }
        } else {
            throw new R_T_G_ServiceException($serviceMethod .' does not exist');
        }
    }

    /**
     * Activates a given player in the casino.
     *
     * @param array $args
     * @return object
     */
    protected function activatePlayer($args)
    {
        return $this->service('ActivatePlayer', $args);
    }

    /**
     * Bans a given player and prevents him/her from logging into the casino.
     *
     * @param $args
     * @return object
     */
    protected function banPlayer($args)
    {
        return $this->service('BanPlayer', $args);
    }

    /**
     * Changes the current password of a given player using a security token.
     *
     * @param $args
     * @return object
     */
    protected function changePasswordWithToken($args)
    {
        return $this->service('ChangePasswordWithToken', $args);
    }

    /**
     * Changes the PlayerClass associated with a player.
     *
     * @param $args
     * @return object
     */
    protected function changePlayerClass($args)
    {
        return $this->service('ChangePlayerClass', $args);
    }

    /**
     * Creates a new player in the database.
     *
     * @param $args
     * @return object
     */
    protected function createPlayer($args)
    {
        return $this->service('CreatePlayer', $args);
    }

    /**
     * Creates a new player in the database, after the player is created it will also create a new token for the player.
     *
     * @param $args
     * @return object
     */
    protected function createPlayerAndToken($args)
    {
        return $this->service('CreatePlayerAndToken', $args);
    }

    /**
     * Deactivates a given player in the casino.
     *
     * @param $args
     * @return object
     */
    protected function deactivatePlayer($args)
    {
        return $this->service('DeactivatePlayer', $args);
    }

    /**
     * Deactivates a given player in the casino.
     *
     * @param $args
     * @return object
     */
    protected function deactivateAndLogoutPlayer($args)
    {
        return $this->service('DeactivateAndLogoutPlayer', $args);
    }

    /**
     * This method will send the player an email notification with the Security Token to change the password.
     *
     * @param string $PID
     * @return object
     */
    protected function forgotPassword(string $PID)
    {
        return $this->service('ForgotPassword', array('PID' => $PID));
    }

    /**
     * This method will send the player an email notification with the login (username) information corresponding to
     * the provided email.
     *
     * @param string $email
     * @return object
     */
    protected function forgotUsername(string $email)
    {
        return $this->service('ForgotUsername', array('Email' => $email));
    }

    /**
     * Gets the adjusted net win of a player.
     *
     * @param string $PID
     * @return object
     */
    protected function getAdjustedNetWinbyPID(string $PID)
    {
        return $this->service('GetAdjustedNetWinbyPID', array('PID' => $PID));
    }

    /**
     * Gets the non cash total of a player.
     *
     * @param string $PID
     * @return object
     */
    protected function getNonCashTotalbyPID(string $PID)
    {
        return $this->service('GetNonCashTotalbyPID', array('PID' => $PID));
    }

    /**
     * Gets the non cash total of a player for deposits made within a date range
     *
     * @param $args
     * @return object
     */
    protected function getNonCashTotalbyPIDandDate($args)
    {
        return $this->service('GetNonCashTotalbyPIDandDate', $args);
    }

    /**
     * Retrieves the player’s ID based on its login.
     *
     * @param string $login
     * @return object
     */
    protected function getPID(string $login)
    {
        return $this->service('GetPID', array('Login' => $login));
    }

    /**
     * The getPlayer method retrieves all the information of a specific player based on its Player ID (PID).
     *
     * @param string $PID
     * @return object
     */
    protected function getPlayer(string $PID)
    {
        return $this->service('getPlayer', array('PID' => $PID));
    }

    /**
     * This method retrieves the PlayerClass associated with a specific player based on its Player ID (PID).
     *
     * @param string $PID
     * @return object
     */
    protected function getPlayerClass(string $PID)
    {
        return $this->service('GetPlayerClass', array('PID' => $PID));
    }

    /**
     * This method retrieves all players in the casino based on their sign up date.
     *
     * @param array $args
     * @return object
     */
    protected function getPlayers($args)
    {
        return $this->service('getPlayers', $args);
    }

    /**
     * This method retrieves all active/open player sessions
     *
     * @param $args
     * @return object
     */
    protected function getPlayersActiveSessions($args)
    {
        return $this->service('GetPlayersActiveSessions', $args);
    }

    /**
     * This method retrieves all players in the casino based on the date the player information was updated.
     *
     * @param $args
     * @return object
     */
    protected function getPlayersDelta($args)
    {
        return $this->service('GetPlayersDelta', $args);
    }

    /**
     * This method will generate a pass code which is a required parameter to access RTG’s built-in reset password page.
     *
     * @param string $login
     * @return object
     */
    protected function getPlayerPasscode(string $login)
    {
        return $this->service('GetPlayerPasscode', array('Login' => $login));
    }

    /**
     * This method will flag the player’s password as “Expired” forcing him/her to change the password.
     *
     * @param string $PID
     * @return object
     */
    protected function resetPassword(string $PID)
    {
        return $this->service('ResetPassword', array('PID' => $PID));
    }

    /**
     * Removes all bans for the given player.
     *
     * @param string $PID
     * @return object
     */
    protected function unbanPlayer(string $PID)
    {
        return $this->service('UnbanPlayer', array('PID' => $PID));
    }

    /**
     * Updates the details of an existing player in the database.
     *
     * @param array $args
     * @return object
     */
    protected function updatePlayer($args)
    {
        return $this->service('UpdatePlayer', $args);
    }

    /**
     * Validates if the credentials of a given player are valid or not.
     *
     * @param array $args
     * @return object
     */
    protected function validateCredentials($args)
    {
        return $this->service('ValidateCredentials', $args);
    }

    /**
     * Returns Ledger Information related to the player.
     *
     * @param string $PID
     * @return object
     */
    protected function getLedgerInformation(string $PID)
    {
        return $this->service('GetLedgerInformation', array('PID' => $PID));
    }

    /**
     * The GetAuditTrailReport method retrieves the information about Audit Trails for Players Details,
     * Game Settings and Table Limits.
     *
     * @param array $args
     * @return object
     */
    protected function getAuditTrailReport($args)
    {
        return $this->service('GetAuditTrailReport', $args);
    }

    /**
     * This method creates a new player in the database.
     *
     * @param array $args
     * @return object
     */
    protected function savePlayer($args)
    {
        return $this->service('SavePlayer', $args);
    }

    /**
     * Logout a given player in the casino.
     *
     * @param array $args
     * @return object
     */
    protected function logout($args)
    {
        return $this->service('SavePlayer', $args);
    }
}

{'fraction_non_alphanumeric': 0.11221056797941817, 'fraction_numerical': 0.0004947555907381753, 'mean_word_length': 2.156464709556527, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 55, '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': '6863466', 'n_tokens_mistral': 2912, 'n_tokens_neox': 2815, 'n_words': 824}