forked from cdaguerre/php-trello-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManager.php
More file actions
129 lines (117 loc) · 2.53 KB
/
Manager.php
File metadata and controls
129 lines (117 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
namespace Trello;
class Manager
{
/**
* @var ClientInterface
*/
protected $client;
/**
* Constructor.
*
* @param ClientInterface $client
*/
public function __construct(ClientInterface $client)
{
$this->client = $client;
}
/**
* Get organization by id or create a new one
*
* @param string $id the organization's id
*
* @return Model\OrganizationInterface
*/
public function getOrganization($id = null)
{
return new Model\Organization($this->client, $id);
}
/**
* Get board by id or create a new one
*
* @param string $id the board's id
*
* @return Model\BoardInterface
*/
public function getBoard($id = null)
{
return new Model\Board($this->client, $id);
}
/**
* Get cardlist by id or create a new one
*
* @param string $id the cardlist's id
*
* @return Model\CardlistInterface
*/
public function getList($id = null)
{
return new Model\Cardlist($this->client, $id);
}
/**
* Get card by id or create a new one
*
* @param string $id the card's id
*
* @return Model\CardInterface
*/
public function getCard($id = null)
{
return new Model\Card($this->client, $id);
}
/**
* Get checklist by id or create a new one
*
* @param string $id the checklist's id
*
* @return Model\ChecklistInterface
*/
public function getChecklist($id = null)
{
return new Model\Checklist($this->client, $id);
}
/**
* Get member by id or create a new one
*
* @param string $id the member's id
*
* @return Model\MemberInterface
*/
public function getMember($id = null)
{
return new Model\Member($this->client, $id);
}
/**
* Get action by id
*
* @param string $id the action's id
*
* @return Model\ActionInterface
*/
public function getAction($id)
{
return new Model\Action($this->client, $id);
}
/**
* Get token by id
*
* @param string $id the token's id
*
* @return Model\TokenInterface
*/
public function getToken($id)
{
return new Model\Token($this->client, $id);
}
/**
* Get webhook by id
*
* @param string $id the webhook's id
*
* @return Model\WebhookInterface
*/
public function getWebhook($id)
{
return new Model\Webhook($this->client, $id);
}
}