ApiInterface
last analyzed

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 96
c 0
b 0
f 0

18 Methods

Rating   Name   Duplication   Size   Complexity  
contacts() 0 1 ?
users() 0 1 ?
groups() 0 1 ?
invitations() 0 1 ?
account() 0 1 ?
workflows() 0 1 ?
customFields() 0 1 ?
folders() 0 1 ?
tasks() 0 1 ?
comments() 0 1 ?
dependencies() 0 1 ?
timelogs() 0 1 ?
timelogCategories() 0 1 ?
attachments() 0 1 ?
version() 0 1 ?
ids() 0 1 ?
colors() 0 1 ?
normalizeParams() 0 1 ?
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the zibios/wrike-php-library package.
7
 *
8
 * (c) Zbigniew Ślązak
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zibios\WrikePhpLibrary;
15
16
use Zibios\WrikePhpLibrary\Resource\AccountResource;
17
use Zibios\WrikePhpLibrary\Resource\AttachmentResource;
18
use Zibios\WrikePhpLibrary\Resource\ColorResource;
19
use Zibios\WrikePhpLibrary\Resource\CommentResource;
20
use Zibios\WrikePhpLibrary\Resource\ContactResource;
21
use Zibios\WrikePhpLibrary\Resource\CustomFieldResource;
22
use Zibios\WrikePhpLibrary\Resource\DependencyResource;
23
use Zibios\WrikePhpLibrary\Resource\FolderResource;
24
use Zibios\WrikePhpLibrary\Resource\GroupResource;
25
use Zibios\WrikePhpLibrary\Resource\IdResource;
26
use Zibios\WrikePhpLibrary\Resource\InvitationResource;
27
use Zibios\WrikePhpLibrary\Resource\TaskResource;
28
use Zibios\WrikePhpLibrary\Resource\TimelogCategoryResource;
29
use Zibios\WrikePhpLibrary\Resource\TimelogResource;
30
use Zibios\WrikePhpLibrary\Resource\UserResource;
31
use Zibios\WrikePhpLibrary\Resource\VersionResource;
32
use Zibios\WrikePhpLibrary\Resource\WorkflowResource;
33
34
/**
35
 * General Wrike Api Interface for resource getters.
36
 */
37
interface ApiInterface extends DeprecatedApiInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Zibios\WrikePhpLibrary\DeprecatedApiInterface has been deprecated with message: Will be removed in version 3.0.0.
Deprecated Wrike Api Interface for resource getters.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
38
{
39
    /**
40
     * @return ContactResource
41
     */
42
    public function contacts(): ContactResource;
43
44
    /**
45
     * @return UserResource
46
     */
47
    public function users(): UserResource;
48
49
    /**
50
     * @return GroupResource
51
     */
52
    public function groups(): GroupResource;
53
54
    /**
55
     * @return InvitationResource
56
     */
57
    public function invitations(): InvitationResource;
58
59
    /**
60
     * @return AccountResource
61
     */
62
    public function account(): AccountResource;
63
64
    /**
65
     * @return WorkflowResource
66
     */
67
    public function workflows(): WorkflowResource;
68
69
    /**
70
     * @return CustomFieldResource
71
     */
72
    public function customFields(): CustomFieldResource;
73
74
    /**
75
     * @return FolderResource
76
     */
77
    public function folders(): FolderResource;
78
79
    /**
80
     * @return TaskResource
81
     */
82
    public function tasks(): TaskResource;
83
84
    /**
85
     * @return CommentResource
86
     */
87
    public function comments(): CommentResource;
88
89
    /**
90
     * @return DependencyResource
91
     */
92
    public function dependencies(): DependencyResource;
93
94
    /**
95
     * @return TimelogResource
96
     */
97
    public function timelogs(): TimelogResource;
98
99
    /**
100
     * @return TimelogCategoryResource
101
     */
102
    public function timelogCategories(): TimelogCategoryResource;
103
104
    /**
105
     * @return AttachmentResource
106
     */
107
    public function attachments(): AttachmentResource;
108
109
    /**
110
     * @return VersionResource
111
     */
112
    public function version(): VersionResource;
113
114
    /**
115
     * @return IdResource
116
     */
117
    public function ids(): IdResource;
118
119
    /**
120
     * @return ColorResource
121
     */
122
    public function colors(): ColorResource;
123
124
    /**
125
     * Calculate params in array to format expected by Wrike Api.
126
     *
127
     * @param array $params
128
     *
129
     * @return array
130
     */
131
    public function normalizeParams(array $params): array;
132
}
133