Pokedex::get()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
c 2
b 0
f 2
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
namespace Atog\PHPokemon\Endpoints;
3
4
use Atog\Api\Endpoint;
5
6
/**
7
 * Class Pokedex
8
 * @package Atog\PHPokemon\Endpoints
9
 */
10
class Pokedex extends Endpoint
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $endpoint = 'pokedex';
16
17
    /**
18
     * @return \Atog\Api\Model|null
19
     */
20 1
    public function get()
21
    {
22 1
        return $this->respond(
23 1
            $this->client->get($this->getEndpointUrl(1, true))
24 1
        );
25
    }
26
}
27