orkhanahmadov/goldenpay

View on GitHub
src/Response/Response.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Orkhanahmadov\Goldenpay\Response;

abstract class Response
{
    /**
     * @var int|null
     */
    protected $code = null;
    /**
     * @var string|null
     */
    protected $message = null;

    /**
     * Response constructor.
     *
     * @param int|null    $code
     * @param string|null $message
     */
    public function __construct(?int $code, ?string $message)
    {
        $this->code = $code;
        $this->message = $message;
    }

    /**
     * @return int|null
     */
    public function getCode(): ?int
    {
        return $this->code;
    }

    /**
     * @return string|null
     */
    public function getMessage(): ?string
    {
        return $this->message;
    }
}