Completed
Push — master ( 978567...468b8f )
by Pascal
16:13
created

Pokemon::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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
    public function find($identifier)
22
    {
23
        return parent::find(strtolower($identifier));
24
    }
25
}
26