Completed
Push — master ( f7d62f...5e8002 )
by Matt
02:53
created

ARBSubscriptionRequest::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace CommerceGuys\AuthNet;
4
5
use GuzzleHttp\Client;
6
use CommerceGuys\AuthNet\DataTypes\Paging;
7
use CommerceGuys\AuthNet\DataTypes\Sorting;
8
use CommerceGuys\AuthNet\Request\RequestInterface;
9
10
/**
11
 * Use this method to create subscriptions using Automated Recurring Billing.
12
 *
13
 * @link https://developer.authorize.net/api/reference/#recurring-billing
14
 */
15
abstract class ARBSubscriptionRequest extends BaseApiRequest
16
{
17
18 1
    public function getType()
19
    {
20 1
        return (new \ReflectionClass($this))->getShortName();
21
    }
22
}
23