GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — rewrite ( 22f219...c351b2 )
by Adam
03:05
created

Factory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A users() 0 4 1
1
<?php
2
3
namespace Poniverse\Lib\Service\Poniverse;
4
5
use Poniverse\Lib\Client;
6
7
class Factory
8
{
9
    /**
10
     * @var Client
11
     */
12
    private $client;
13
14
    public function __construct(Client $client)
15
    {
16
        $this->client = $client;
17
    }
18
19
    /**
20
     * Returns the user service.
21
     *
22
     * @return User
23
     */
24
    public function users()
25
    {
26
        return new User($this->client);
27
    }
28
}
29