<commit_before><?php namespace Ordercloud\Requests\Payments;

use Ordercloud\Requests\Payments\Entities\CreditCard;
use Ordercloud\Support\CommandBus\Command;

class CreateCreditCardPayment implements Command
{
    /** @var string */
    private $paymentGateway;
    /** @var float */
    private $amount;
    /** @var CreditCard */
    private $card;
    /** @var int */
    private $orderID;
    /** @var string|null */
    private $description;
    /** @var string */
    private $budgetPeriod;
    /** @var string|null */
    private $orderRef;
    /** @var string|null */
    private $destinationRef;
    /** @var bool */
    private $testMode;
    /** @var string|null */
    private $accessToken;

    public function __construct($paymentGateway, $amount, CreditCard $card, $orderID, $description = null, $budgetPeriod = 0, $orderRef = null, $destinationRef = null, $testMode = true, $accessToken = null)
    {
        $this->paymentGateway = $paymentGateway;
        $this->amount = $amount;
        $this->card = $card;
        $this->description = $description;
        $this->budgetPeriod = $budgetPeriod ?: 0;
        $this->orderRef = $orderRef;
        $this->destinationRef = $destinationRef;
        $this->testMode = $testMode;
        $this->accessToken = $accessToken;
        $this->orderID = $orderID;
    }

    /**
     * @return string
     */
    public function getPaymentGateway()
    {
        return $this->paymentGateway;
    }

    /**
     * @return float
     */
    public function getAmount()
    {
        return $this->amount;
    }

    /**
     * @return CreditCard
     */
    public function getCard()
    {
        return $this->card;
    }

    /**
     * @return int
     */
    public function getOrderID()
    {
        return $this->orderID;
    }

    /**
     * @return null|string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @return string
     */
    public function getBudgetPeriod()
    {
        return $this->budgetPeriod;
    }

    /**
     * @return null|string
     */
    public function getOrderRef()
    {
        return $this->orderRef;
    }

    /**
     * @return null|string
     */
    public function getDestinationRef()
    {
        return $this->destinationRef;
    }

    /**
     * @return boolean
     */
    public function isTestMode()
    {
        return $this->testMode;
    }

    /**
     * @return null|string
     */
    public function getAccessToken()
    {
        return $this->accessToken;
    }
}
<commit_msg>Use strings on string property type<commit_after><?php namespace Ordercloud\Requests\Payments;

use Ordercloud\Requests\Payments\Entities\CreditCard;
use Ordercloud\Support\CommandBus\Command;

class CreateCreditCardPayment implements Command
{
    /** @var string */
    private $paymentGateway;
    /** @var float */
    private $amount;
    /** @var CreditCard */
    private $card;
    /** @var int */
    private $orderID;
    /** @var string|null */
    private $description;
    /** @var string */
    private $budgetPeriod;
    /** @var string|null */
    private $orderRef;
    /** @var string|null */
    private $destinationRef;
    /** @var bool */
    private $testMode;
    /** @var string|null */
    private $accessToken;

    public function __construct($paymentGateway, $amount, CreditCard $card, $orderID, $description = null, $budgetPeriod = '0', $orderRef = null, $destinationRef = null, $testMode = true, $accessToken = null)
    {
        $this->paymentGateway = $paymentGateway;
        $this->amount = $amount;
        $this->card = $card;
        $this->description = $description;
        $this->budgetPeriod = $budgetPeriod ?: '0';
        $this->orderRef = $orderRef;
        $this->destinationRef = $destinationRef;
        $this->testMode = $testMode;
        $this->accessToken = $accessToken;
        $this->orderID = $orderID;
    }

    /**
     * @return string
     */
    public function getPaymentGateway()
    {
        return $this->paymentGateway;
    }

    /**
     * @return float
     */
    public function getAmount()
    {
        return $this->amount;
    }

    /**
     * @return CreditCard
     */
    public function getCard()
    {
        return $this->card;
    }

    /**
     * @return int
     */
    public function getOrderID()
    {
        return $this->orderID;
    }

    /**
     * @return null|string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @return string
     */
    public function getBudgetPeriod()
    {
        return $this->budgetPeriod;
    }

    /**
     * @return null|string
     */
    public function getOrderRef()
    {
        return $this->orderRef;
    }

    /**
     * @return null|string
     */
    public function getDestinationRef()
    {
        return $this->destinationRef;
    }

    /**
     * @return boolean
     */
    public function isTestMode()
    {
        return $this->testMode;
    }

    /**
     * @return null|string
     */
    public function getAccessToken()
    {
        return $this->accessToken;
    }
}

{'fraction_non_alphanumeric': 0.1358695652173913, 'fraction_numerical': 0.0007763975155279503, 'mean_word_length': 2.0347467608951706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '2973756', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1519, 'n_words': 327}