CategoryModel::getOne PHP Method

getOne() private method

Get a single category from the collection.
private getOne ( string | integer $id )
$id string | integer The category code or ID.
    private function getOne($id)
    {
        if (is_numeric($id)) {
            $id = (int) $id;
        }
        $category = $this->collection->get($id);
        return $category;
    }