Pokemon::find()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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