Cloudstek/mollie-php-api

View on GitHub
src/Model/Issuer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Mollie\API\Model;

use Mollie\API\Model\Base\ModelBase;

/**
 * Issuer model
 *
 * @SuppressWarnings(PHPMD.ShortVariable)
 * @SuppressWarnings(PHPMD.TooManyFields)
 * @SuppressWarnings(PHPMD.TooManyPublicMethods)
 */
class Issuer extends ModelBase
{
    /** @var string Issuer ID */
    public $id;

    /** @var string Issuer's full name */
    public $name;

    /** @var string Payment method the issuer belongs to */
    public $method;

    /**
     * Issuer payment method
     * @return Method Payment method the issuer belongs to
     */
    public function method()
    {
        return $this->api->method($this->method)->get();
    }
}