Asana::getApi()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Helix\Asana\Api\Laravel\Facade;
4
5
use Helix\Asana\Api;
6
use Helix\Asana\Api\Laravel\AsanaServiceProvider;
7
use Helix\Asana\CustomField;
8
use Helix\Asana\Event;
9
use Helix\Asana\Job;
10
use Helix\Asana\OrganizationExport;
11
use Helix\Asana\Portfolio;
12
use Helix\Asana\Project;
13
use Helix\Asana\Project\Section;
14
use Helix\Asana\Tag;
15
use Helix\Asana\Task;
16
use Helix\Asana\Task\Attachment;
17
use Helix\Asana\Task\Story;
18
use Helix\Asana\Team;
19
use Helix\Asana\User;
20
use Helix\Asana\User\TaskList;
21
use Helix\Asana\Webhook\ProjectWebhook;
22
use Helix\Asana\Webhook\TaskWebhook;
23
use Helix\Asana\Workspace;
24
use Illuminate\Support\Facades\Facade;
25
26
/**
27
 * @see Api
28
 * @see AsanaServiceProvider
29
 *
30
 * @method static null|Attachment           getAttachment           (string $gid)
31
 * @method static null|CustomField          getCustomField          (string $gid)
32
 * @method static Workspace                 getDefaultWorkspace     ()
33
 * @method static null|Job                  getJob                  (string $gid)
34
 * @method static User                      getMe                   ()
35
 * @method static null|OrganizationExport   getOrganizationExport   (string $gid)
36
 * @method static null|Portfolio            getPortfolio            (string $gid)
37
 * @method static null|Project              getProject              (string $gid)
38
 * @method static null|ProjectWebhook       getProjectWebhook       (string $gid)
39
 * @method static null|Section              getSection              (string $gid)
40
 * @method static null|Story                getStory                (string $gid)
41
 * @method static null|Tag                  getTag                  (string $gid)
42
 * @method static null|Task                 getTask                 (string $gid)
43
 * @method static null|TaskList             getTaskList             (string $gid)
44
 * @method static null|TaskWebhook          getTaskWebhook          (string $gid)
45
 * @method static null|Team                 getTeam                 (string $gid)
46
 * @method static null|User                 getUser                 (string $gid)
47
 * @method static Event                     getWebhookEvent         (array $data)
48
 * @method static null|Workspace            getWorkspace            (string $gid)
49
 */
50
class Asana extends Facade {
51
52
    /**
53
     * @return Api
54
     */
55
    public static function getApi () {
56
        return static::getFacadeRoot();
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public static function getFacadeAccessor () {
63
        return AsanaServiceProvider::NAME;
64
    }
65
66
}