Passed
Push — main ( e110ad...47f0cd )
by Dylan
02:09
created

LifeboatModel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getService() 0 3 1
1
<?php
2
3
namespace Lifeboat\Models;
4
5
use Lifeboat\Exceptions\BadMethodException;
6
use Lifeboat\Services\ApiService;
7
8
/**
9
 * Class LifeboatModel
10
 * @package Lifeboat\Models
11
 */
12
class LifeboatModel extends Model {
13
14
    /**
15
     * @return ApiService
16
     * @throws BadMethodException
17
     */
18
    public function getService(): ApiService
19
    {
20
        throw new BadMethodException("LifeboatModel does have an API service");
21
    }
22
}
23