Test Failed
Branch master (3f2e80)
by Gabriel
03:43 queued 01:39
created

AbstractRequest::setApiUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace ByTIC\Omnipay\Paylike\Message;
4
5
use ByTIC\Omnipay\Common\Message\Traits\SendDataRequestTrait;
6
use ByTIC\Omnipay\Paylike\Traits\HasKeysTrait;
7
use Omnipay\Common\Message\AbstractRequest as CommonAbstractRequest;
8
9
/**
10
 * Class AbstractRequest
11
 * @package ByTIC\Omnipay\Paylike\Message
12
 */
13
abstract class AbstractRequest extends CommonAbstractRequest
14
{
15
    use SendDataRequestTrait;
16
    use HasKeysTrait;
17
18
    /**
19
     * @return mixed
20
     */
21
    public function getApiUrl()
22
    {
23
        return $this->getParameter('apiUrl');
24
    }
25
26
    /**
27
     * @param $value
28
     * @return CommonAbstractRequest
29
     */
30
    public function setApiUrl($value)
31
    {
32
        return $this->setParameter('apiUrl', $value);
33
    }
34
}
35