Code Duplication    Length = 28-29 lines in 4 locations

src/API/Http/Request/TimeEntry/StopTimeEntry.php 1 location

@@ 13-40 (lines=28) @@
10
 *
11
 * @property-read int $timeEntryId
12
 */
13
class StopTimeEntry extends Request
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $uri = 'time_entries/{time_entry_id}/stop';
19
20
    /**
21
     * @var string
22
     */
23
    protected $method = Request::PUT;
24
25
    /**
26
     * @var int
27
     */
28
    protected $timeEntryId;
29
30
    /**
31
     * StopTimeEntry constructor.
32
     *
33
     * @param array $properties
34
     */
35
    public function __construct(array $properties)
36
    {
37
        parent::__construct($properties);
38
        $this->uri = str_replace('{time_entry_id}', $this->timeEntryId, $this->uri);
39
    }
40
}
41

src/API/Http/Request/WorkspaceUsers/DeleteWorkspaceUser.php 1 location

@@ 13-41 (lines=29) @@
10
 *
11
 * @property-read int $workspaceUserId
12
 */
13
class DeleteWorkspaceUser extends Request
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $uri = 'workspace_users/{workspace_user_id}';
19
20
    /**
21
     * @var string
22
     */
23
    protected $method = Request::DELETE;
24
25
    /**
26
     * @var int
27
     */
28
    protected $workspaceUserId;
29
30
    /**
31
     * DeleteWorkspaceUser constructor.
32
     *
33
     * @param array $properties
34
     */
35
    public function __construct(array $properties)
36
    {
37
        parent::__construct($properties);
38
39
        $this->uri = str_replace('{workspace_user_id}', $this->workspaceUserId, $this->uri);
40
    }
41
}
42

src/API/Http/Request/ProjectUsers/DeleteProjectUser.php 1 location

@@ 13-40 (lines=28) @@
10
 *
11
 * @property-read int $projectUserId
12
 */
13
class DeleteProjectUser extends Request
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $uri = 'project_users/{project_user_id}';
19
20
    /**
21
     * @var int
22
     */
23
    protected $projectUserId;
24
25
    /**
26
     * @var string
27
     */
28
    protected $method = Request::DELETE;
29
30
    /**
31
     * DeleteProjectUser constructor.
32
     *
33
     * @param array $parameters
34
     */
35
    public function __construct(array $parameters)
36
    {
37
        parent::__construct($parameters);
38
        $this->uri = str_replace('{project_user_id}', $this->projectUserId, $this->uri);
39
    }
40
}
41

src/API/Http/Request/Tag/DeleteTag.php 1 location

@@ 13-41 (lines=29) @@
10
 *
11
 * @property-read int $tagId
12
 */
13
class DeleteTag extends Request
14
{
15
    /**
16
     * @var string
17
     */
18
    protected $method = Request::DELETE;
19
20
    /**
21
     * @var string
22
     */
23
    protected $uri = 'tags/{tag_id}';
24
25
    /**
26
     * @var int
27
     */
28
    protected $tagId;
29
30
    /**
31
     * UpdateTag constructor.
32
     *
33
     * @param array $properties
34
     */
35
    public function __construct(array $properties)
36
    {
37
        parent::__construct($properties);
38
39
        $this->uri = str_replace('{tag_id}', $this->tagId, $this->uri);
40
    }
41
}
42