<commit_before><?php

namespace IPay\Mellat;

use DateTime;
use SoapClient;
use IPay\Config;
use IPay\IPayAbstract;
use IPay\IPayInterface;
use IPay\DataBaseManager;

class IPayMellat extends IPayAbstract implements IPayInterface
{
    /**
     * Determine request passes
     *
     * @var bool
     */
    protected $requestPass = false;

    /**
     * Address of main SOAP server
     *
     * @var string
     */
    protected $serverUrl = 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl';


    /**
     * Additional data for send to port
     *
     * @var string
     */
    protected $additionalData;

    /**
     * @inheritdoc
     */
    public function __construct(Config $config, DataBaseManager $db, $portId) {
        parent::__construct($config,$db,$portId);


        $this->username = $this->config->get('mellat.username');
        $this->password = $this->config->get('mellat.password');
        $this->termId = $this->config->get('mellat.terminalId');
    }

    /**
     * This method use for set price in Rial.
     *
     * @param int $amount in Rial
     *
     * @return $this
     */
    public function set($amount)
    {
        $this->amount = $amount;

        return $this;
    }

    /**
     * Some of the ports can be send additional data to port server.<commit_msg>Fix syntax<commit_after><?php

namespace IPay\Mellat;

use DateTime;
use SoapClient;
use IPay\Config;
use IPay\IPayAbstract;
use IPay\IPayInterface;
use IPay\DataBaseManager;

class IPayMellat extends IPayAbstract implements IPayInterface
{
    /**
     * Determine request passes
     *
     * @var bool
     */
    protected $requestPass = false;

    /**
     * Address of main SOAP server
     *
     * @var string
     */
    protected $serverUrl = 'https://bpm.shaparak.ir/pgwchannel/services/pgw?wsdl';


    /**
     * Additional data for send to port
     *
     * @var string
     */
    protected $additionalData;

    /**
     * @inheritdoc
     */
    public function __construct(Config $config, DataBaseManager $db, $portId) {
        parent::__construct($config, $db, $portId);


        $this->username = $this->config->get('mellat.username');
        $this->password = $this->config->get('mell<PASSWORD>');
        $this->termId = $this->config->get('mellat.terminalId');
    }

    /**
     * This method use for set price in Rial.
     *
     * @param int $amount in Rial
     *
     * @return $this
     */
    public function set($amount)
    {
        $this->amount = $amount;

        return $this;
    }

    /**
     * Some of the ports can be send additional data to port server.
{'fraction_non_alphanumeric': 0.12901990811638592, 'fraction_numerical': 0.0, 'mean_word_length': 2.3034134007585334, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 24, 'https://': 2, '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': '1847409', 'n_tokens_mistral': 838, 'n_tokens_neox': 811, 'n_words': 198}