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

Tokens::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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