SparkPost\ResourceBase::__construct PHP Method

__construct() public method

Sets up the Resource.
public __construct ( SparkPost $sparkpost, string $endpoint )
$sparkpost SparkPost - the sparkpost instance that this resource is attached to
$endpoint string - the endpoint that this resource wraps
    public function __construct(SparkPost $sparkpost, $endpoint)
    {
        $this->sparkpost = $sparkpost;
        $this->endpoint = $endpoint;
    }