This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
15
{
16
use ReadOnlyArrayAccess;
17
use IterableCollection;
18
19
/** @var string */
20
public $job_id;
21
22
/**
23
* Job Instances constructor.
24
*
25
* @param Client $client
26
* @param string $job_id
27
*/
28
public function __construct(Client $client, $job_id)
29
{
30
$this->job_id = $job_id;
31
parent::__construct($client, 'job_instance');
32
}
33
34
/**
35
* Get a single Job Instance by its job_id and instance_id.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.