Account   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A usage() 0 4 1
A users() 0 4 1
1
<?php
2
3
namespace Sjdaws\NewRelicApi;
4
5
use Sjdaws\NewRelicApi\Account\Usage;
6
use Sjdaws\NewRelicApi\Account\Users;
7
8
class Account extends Resource
9
{
10
    /**
11
     * Create a new usage instance
12
     *
13
     * @return Usage
14
     */
15
    public function usage()
16
    {
17
        return new Usage($this->apiKey, $this->logger);
18
    }
19
20
    /**
21
     * Create a new users instance
22
     *
23
     * @return Users
24
     */
25
    public function users()
26
    {
27
        return new Users($this->apiKey, $this->logger);
28
    }
29
}
30