Completed
Push — master ( 9ae690...ba1bd4 )
by Stephen
02:32
created

Organisations::findOrg()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
namespace StarCitizen\Organisations;
4
use StarCitizen\Base\StarCitizenAbstract;
5
use StarCitizen\Models\Organisation;
6
7
/**
8
 * Class Organisations
9
 *
10
 * @package StarCitizen\Orginisations;
11
 */
12
class Organisations extends StarCitizenAbstract
13
{
14
15
    const ORG = 'single_organization';
16
    const MEMBERS = 'members';
17
    const BASEPROFILE = Organisations::ORG;
18
19
    /**
20
     * Model map
21
     */
22
    const MODELS = [
23
        Organisations::ORG => '\Organisation',
24
        Organisations::MEMBERS => '\Members'
25
    ];
26
27
    /**
28
     * @var string
29
     */
30
    protected static $system = "organizations";
31
32
33
    /**
34
     * @param $id
35
     * @param bool $cache
36
     * @param bool $raw
37
     *
38
     * @return bool|Organisation
39
     */
40
    public static function findOrg($id, $cache = false, $raw = false)
41
    {
42
        return static::find($id, Organisations::ORG, $cache, $raw);
43
    }
44
}