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...
10
{
11
const ENDPOINT = 'stock/{symbol}/stats';
12
13
/**
14
* IEX Cloud Documentation provides for the optional field to be added to
15
* the end of the endpoint uri in order to retrieve a specific field.
16
* This property allows that functionality to be used in this SDK.
17
*/
18
public $field;
19
20
/**
21
* Create constructor.
22
*
23
* @param IEXCloud $api
24
*/
25
4
public function __construct(IEXCloud $api)
26
{
27
4
parent::__construct($api);
28
4
}
29
30
/**
31
* If the field property is set, add it to the end of the endpoint string.
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.