Completed
Pull Request — 1.11.x (#1599)
by José
28:19
created

Tokens   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A retrieve() 0 4 1
A create() 0 4 1
1
<?php
2
namespace Culqi;
3
4
class Tokens extends Resource
5
{
6
    /**
7
     * @param string $id La ID del token a devolver.
8
     * @param array|string|null $opts
9
     *
10
     * @return Token
11
     */
12
    public static function retrieve($id, $opts = null)
13
    {
14
        return self::_retrieve($id, $opts);
0 ignored issues
show
Bug introduced by
The method _retrieve() does not exist on Culqi\Tokens. Did you maybe mean retrieve()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
15
    }
16
    /**
17
     * @param array|null $params
18
     * @param array|string|null $opts
19
     *
20
     * @return Token Token creado
21
     * ATENCIÓN: Solo para desarollo. Lo ideal es usar el CULQI.JS.
22
     *
23
     */
24
    public static function create($params = null, $opts = null)
25
    {
26
        return self::_create($params, $opts);
0 ignored issues
show
Bug introduced by
The method _create() does not exist on Culqi\Tokens. Did you maybe mean create()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
27
    }
28
}
29