Passed
Push — master ( 25904c...9c8bf6 )
by y
07:52
created

Asana   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 2
Metric Value
eloc 4
c 3
b 0
f 2
dl 0
loc 21
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 2 1
A getApi() 0 2 1
A getFacadeRoot() 0 2 1
1
<?php
2
3
namespace Helix\Asana\Api\Laravel\Facade;
4
5
use Helix\Asana\Api;
6
use Helix\Asana\Api\Cache;
7
use Helix\Asana\Api\Laravel\AsanaServiceProvider;
8
use Helix\Asana\Api\LoggerInterface;
9
use Helix\Asana\CustomField;
10
use Helix\Asana\Event\ProjectEvent;
11
use Helix\Asana\Event\StoryEvent;
12
use Helix\Asana\Event\TaskEvent;
13
use Helix\Asana\Portfolio;
14
use Helix\Asana\Project;
15
use Helix\Asana\Project\Section;
16
use Helix\Asana\Tag;
17
use Helix\Asana\Task;
18
use Helix\Asana\Task\Attachment;
19
use Helix\Asana\Task\Story;
20
use Helix\Asana\Team;
21
use Helix\Asana\User;
22
use Helix\Asana\Workspace;
23
use Illuminate\Support\Facades\Facade;
24
25
/**
26
 * @see Api
27
 *
28
 * @method static null|Attachment  getAttachment(string $gid)
29
 * @method static $this            setCache(Cache $cache)
30
 * @method static null|CustomField getCustomField(string $gid)
31
 * @method static $this            setLogger(LoggerInterface $logger)
32
 * @method static User             getMe()
33
 * @method static null|Portfolio   getPortfolio(string $gid)
34
 * @method static null|Project     getProject(string $gid)
35
 * @method static null|Section     getSection(string $gid)
36
 * @method static null|Story       getStory(string $gid)
37
 * @method static null|Tag         getTag(string $gid)
38
 * @method static null|Task        getTask(string $gid)
39
 * @method static null|Team        getTeam(string $gid)
40
 * @method static null|User        getUser(string $gid)
41
 * @method static null|User        getUserByEmail(string $email)
42
 * @method static User[]           getUsers()
43
 * @method static ProjectEvent|TaskEvent|StoryEvent getWebhookEvent(array $data)
44
 * @method static null|Workspace   getWorkspace(string $gid)
45
 * @method static null|Workspace   getWorkspaceByName(string $name)
46
 */
47
class Asana extends Facade {
48
49
    /**
50
     * @return Api
51
     */
52
    final public static function getApi () {
53
        return static::getFacadeRoot();
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public static function getFacadeAccessor () {
60
        return AsanaServiceProvider::NAME;
61
    }
62
63
    /**
64
     * @return Api
65
     */
66
    public static function getFacadeRoot () {
67
        return parent::getFacadeRoot();
68
    }
69
}