for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cakasim\Payone\Sdk\Api\Message\Payment\Parameter;
/**
* Implements getter and setter for the amount API request parameter.
*
* @author Fabian Böttcher <[email protected]>
* @since 0.1.0
*/
trait Amount
{
* @inheritDoc
public function getAmount(): ?int
return isset($this->parameters['amount'])
? (int) $this->parameters['amount']
: null;
}
* Sets the amount.
* @param int $amount The amount.
* @return $this
public function setAmount(int $amount): self
$this->parameters['amount'] = (string) $amount;
parameters
return $this;