Pokemon   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A find() 0 4 1
1
<?php
2
namespace Atog\PHPokemon\Endpoints;
3
4
use Atog\PHPokemon\Endpoint;
5
6
/**
7
 * Class Pokemon
8
 * @package Atog\PHPokemon\Endpoints
9
 */
10
class Pokemon extends Endpoint
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $endpoint = 'pokemon';
16
17
    /**
18
     * @param string|int $identifier id or name of the pokemon
19
     * @return \Atog\Api\Model|null
20
     */
21 2
    public function find($identifier)
22
    {
23 2
        return parent::find(strtolower($identifier));
24
    }
25
}
26