Pokedex   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 1
cbo 2
dl 0
loc 17
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 6 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