|
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\Portfolio; |
|
10
|
|
|
use Helix\Asana\Project; |
|
11
|
|
|
use Helix\Asana\Project\Section; |
|
12
|
|
|
use Helix\Asana\Tag; |
|
13
|
|
|
use Helix\Asana\Task; |
|
14
|
|
|
use Helix\Asana\Task\Attachment; |
|
15
|
|
|
use Helix\Asana\Task\Story; |
|
16
|
|
|
use Helix\Asana\Team; |
|
17
|
|
|
use Helix\Asana\User; |
|
18
|
|
|
use Helix\Asana\User\TaskList; |
|
19
|
|
|
use Helix\Asana\Webhook\AbstractWebhook; |
|
20
|
|
|
use Helix\Asana\Workspace; |
|
21
|
|
|
use Illuminate\Support\Facades\Facade; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @see Api |
|
25
|
|
|
* @see AsanaServiceProvider |
|
26
|
|
|
* |
|
27
|
|
|
* @method static null|Attachment getAttachment (string $gid) |
|
28
|
|
|
* @method static null|CustomField getCustomField (string $gid) |
|
29
|
|
|
* @method static Workspace getDefaultWorkspace () |
|
30
|
|
|
* @method static User getMe () |
|
31
|
|
|
* @method static null|Portfolio getPortfolio (string $gid) |
|
32
|
|
|
* @method static null|Project getProject (string $gid) |
|
33
|
|
|
* @method static null|Section getSection (string $gid) |
|
34
|
|
|
* @method static null|Story getStory (string $gid) |
|
35
|
|
|
* @method static null|Tag getTag (string $gid) |
|
36
|
|
|
* @method static null|Task getTask (string $gid) |
|
37
|
|
|
* @method static null|TaskList getTaskList (string $gid) |
|
38
|
|
|
* @method static null|Team getTeam (string $gid) |
|
39
|
|
|
* @method static null|User getUser (string $gid) |
|
40
|
|
|
* @method static null|AbstractWebhook getWebhook (string $gid) |
|
41
|
|
|
* @method static Event getWebhookEvent (array $data) |
|
42
|
|
|
* @method static null|Workspace getWorkspace (string $gid) |
|
43
|
|
|
* @method static null|Workspace getWorkspaceByName (string $name) |
|
44
|
|
|
* @method static Workspace[] getWorkspaces () |
|
45
|
|
|
*/ |
|
46
|
|
|
class Asana extends Facade { |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @return Api |
|
50
|
|
|
*/ |
|
51
|
|
|
final public static function getApi () { |
|
52
|
|
|
return static::getFacadeRoot(); |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return string |
|
57
|
|
|
*/ |
|
58
|
|
|
public static function getFacadeAccessor () { |
|
59
|
|
|
return AsanaServiceProvider::NAME; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
} |