Errors::getModelNotFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 2
1
<?php
2
3
namespace SoliDry\Helpers;
4
5
use SoliDry\Extension\JSONApiInterface;
6
7
/**
8
 * Class Errors
9
 *
10
 * @package SoliDry\Helpers
11
 */
12
class Errors
13
{
14
15
    /**
16
     * @param string $entity
17
     * @param $id
18
     * @return array
19
     */
20
    public function getModelNotFound(string $entity, $id): array
21
    {
22
        return [
23
            [
24
                JSONApiInterface::ERROR_TITLE => 'Database object ' . $entity . ' with $id = ' . $id .
25
                    ' - not found.',
26
            ],
27
        ];
28
    }
29
}