Code Duplication    Length = 18-23 lines in 3 locations

src/Entities/Resources/Document.php 1 location

@@ 8-30 (lines=23) @@
5
class Document extends AbstractResource
6
{
7
8
    public function __construct($values = NULL, $client = NULL)
9
    {
10
11
        $this->setFields([
12
            'id',
13
            'object',
14
            'type',
15
            'created_at',
16
            'download_uri',
17
            'filesize',
18
            'filename',
19
            'content_type',
20
            'candidate_id'
21
        ]);
22
23
        $this->setHidden([
24
            'report_id',
25
            'hidden'
26
        ]);
27
28
        parent::__construct($values, $client);
29
30
    }
31
32
33
    /**

src/Entities/Resources/Invitation.php 1 location

@@ 13-30 (lines=18) @@
10
{
11
    use Listable, Creatable, Deleteable;
12
13
    public function __construct($values = NULL, $client = NULL)
14
    {
15
        $this->setFields([
16
            'id',
17
            'object',
18
            'uri',
19
            'invitation_url',
20
            'status',
21
            'created_at',
22
            'expires_at',
23
            'deleted_at',
24
            'completed_at',
25
            'package',
26
            'candidate_id'
27
        ]);
28
        parent::__construct($values, $client);
29
30
    }
31
}

src/Entities/Resources/Subscription.php 1 location

@@ 7-27 (lines=21) @@
4
5
class Subscription extends AbstractResource
6
{
7
    public function __construct($values = NULL, $client = NULL)
8
    {
9
10
        $this->setFields([
11
            'id',
12
            'object',
13
            'uri',
14
            'status',
15
            'values',
16
            'created_at',
17
            'canceled_at',
18
            'package',
19
            'interval_count',
20
            'interval_unit',
21
            'start_date',
22
            'candidate_id'
23
        ]);
24
25
        parent::__construct($values, $client);
26
27
    }
28
}