public function __construct(SparkPost $sparkpost, $endpoint) { $this->sparkpost = $sparkpost; $this->endpoint = $endpoint; }