1 | <?php |
||
5 | class Manager |
||
6 | { |
||
7 | /** |
||
8 | * @var ClientInterface |
||
9 | */ |
||
10 | protected $client; |
||
11 | |||
12 | /** |
||
13 | * Constructor. |
||
14 | * |
||
15 | * @param ClientInterface $client |
||
16 | */ |
||
17 | public function __construct(ClientInterface $client) |
||
21 | |||
22 | /** |
||
23 | * Get organization by id or create a new one |
||
24 | * |
||
25 | * @param string $id the organization's id |
||
26 | * |
||
27 | * @return Model\OrganizationInterface |
||
28 | */ |
||
29 | public function getOrganization($id = null) |
||
33 | |||
34 | /** |
||
35 | * Get board by id or create a new one |
||
36 | * |
||
37 | * @param string $id the board's id |
||
38 | * |
||
39 | * @return Model\BoardInterface |
||
40 | */ |
||
41 | public function getBoard($id = null) |
||
45 | |||
46 | /** |
||
47 | * Get cardlist by id or create a new one |
||
48 | * |
||
49 | * @param string $id the cardlist's id |
||
50 | * |
||
51 | * @return Model\CardlistInterface |
||
52 | */ |
||
53 | public function getList($id = null) |
||
57 | |||
58 | /** |
||
59 | * Get card by id or create a new one |
||
60 | * |
||
61 | * @param string $id the card's id |
||
62 | * |
||
63 | * @return Model\CardInterface |
||
64 | */ |
||
65 | public function getCard($id = null) |
||
69 | |||
70 | /** |
||
71 | * Get label by id or create a new one |
||
72 | * |
||
73 | * @param string $id the label's id |
||
74 | * |
||
75 | * @return Model\LabelInterface |
||
76 | */ |
||
77 | public function getLabel($id = null) |
||
81 | |||
82 | /** |
||
83 | * Get checklist by id or create a new one |
||
84 | * |
||
85 | * @param string $id the checklist's id |
||
86 | * |
||
87 | * @return Model\ChecklistInterface |
||
88 | */ |
||
89 | public function getChecklist($id = null) |
||
93 | |||
94 | /** |
||
95 | * Get member by id or create a new one |
||
96 | * |
||
97 | * @param string $id the member's id |
||
98 | * |
||
99 | * @return Model\MemberInterface |
||
100 | */ |
||
101 | public function getMember($id = null) |
||
105 | |||
106 | /** |
||
107 | * Get action by id |
||
108 | * |
||
109 | * @param string $id the action's id |
||
110 | * |
||
111 | * @return Model\ActionInterface |
||
112 | */ |
||
113 | public function getAction($id) |
||
117 | |||
118 | /** |
||
119 | * Get token by id |
||
120 | * |
||
121 | * @param string $id the token's id |
||
122 | * |
||
123 | * @return Model\TokenInterface |
||
124 | */ |
||
125 | public function getToken($id) |
||
129 | |||
130 | /** |
||
131 | * Get webhook by id |
||
132 | * |
||
133 | * @param string $id the webhook's id |
||
134 | * |
||
135 | * @return Model\WebhookInterface |
||
136 | */ |
||
137 | public function getWebhook($id) |
||
141 | } |
||
142 |