1 | <?php |
||
23 | Class Project extends Package |
||
24 | { |
||
25 | /** |
||
26 | * Create Crowdin project. |
||
27 | * |
||
28 | * @param string $login The user login. |
||
29 | * @param string $accountKey The user account key. |
||
30 | * @param Languageproject $project The project object. |
||
31 | * |
||
32 | * @see https://crowdin.com/page/api/create-project |
||
33 | * @since 1.0.7 |
||
34 | * |
||
35 | * @return ResponseInterface |
||
36 | */ |
||
37 | 1 | public function create(string $login, string $accountKey, Languageproject $project) : ResponseInterface |
|
51 | |||
52 | /** |
||
53 | * Edit Crowdin project. |
||
54 | * |
||
55 | * @param Languageproject $project The language project object. |
||
56 | * |
||
57 | * @see https://crowdin.com/page/api/edit-project |
||
58 | * @since 1.0.7 |
||
59 | * |
||
60 | * @return ResponseInterface |
||
61 | */ |
||
62 | 1 | public function edit(Languageproject $project) : ResponseInterface |
|
70 | |||
71 | /** |
||
72 | * Get Crowdin Project details. |
||
73 | * |
||
74 | * @param string $login Your Crowdin Account login name. |
||
75 | * @param string $accountKey Account API key (profile settings -> "API & SSO" tab). |
||
76 | * |
||
77 | * @see https://crowdin.com/page/api/get-projects |
||
78 | * @since 1.0.7 |
||
79 | * |
||
80 | * @return ResponseInterface |
||
81 | */ |
||
82 | 1 | public function getList(string $login, string $accountKey) : ResponseInterface |
|
93 | |||
94 | /** |
||
95 | * Get Crowdin Project details. |
||
96 | * |
||
97 | * @since 1.0.5 |
||
98 | * @see https://crowdin.com/page/api/info |
||
99 | * |
||
100 | * @return ResponseInterface |
||
101 | */ |
||
102 | 1 | public function getInfo() : ResponseInterface |
|
107 | |||
108 | /** |
||
109 | * Delete Crowdin project with all translations. |
||
110 | * |
||
111 | * @since 1.0.5 |
||
112 | * @see https://crowdin.com/page/api/delete-project |
||
113 | * |
||
114 | * @return ResponseInterface |
||
115 | */ |
||
116 | 1 | public function delete() : ResponseInterface |
|
121 | } |
||
122 |