diff options
author | beardyman <nornholdj@gmail.com> | 2015-09-30 21:44:52 -0400 |
---|---|---|
committer | beardyman <nornholdj@gmail.com> | 2015-09-30 21:44:52 -0400 |
commit | 97e0d2643db1969e299349968eea1d9c7a951d7f (patch) | |
tree | 609c4ee26facf953a8d56e855303519c3678c66b /lib | |
parent | c753d55e2025c3948fe8a59a660a881a429b8df2 (diff) | |
download | php-sparkpost-97e0d2643db1969e299349968eea1d9c7a951d7f.zip php-sparkpost-97e0d2643db1969e299349968eea1d9c7a951d7f.tar.gz php-sparkpost-97e0d2643db1969e299349968eea1d9c7a951d7f.tar.bz2 |
Updated tests for new structure
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SparkPost/APIResource.php | 5 | ||||
-rw-r--r-- | lib/SparkPost/SparkPost.php | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/SparkPost/APIResource.php b/lib/SparkPost/APIResource.php index 7ec958b..4c4cf08 100644 --- a/lib/SparkPost/APIResource.php +++ b/lib/SparkPost/APIResource.php @@ -28,6 +28,11 @@ class APIResource { */ protected static $structure = []; + /** + * @desc SparkPost reference for httpAdapters and configs + */ + protected $sparkpost; + /** * @desc Initializes config and httpAdapter for use later. * @param $sparkpost SparkPost\SparkPost provides api configuration information diff --git a/lib/SparkPost/SparkPost.php b/lib/SparkPost/SparkPost.php index aac352b..83200c0 100644 --- a/lib/SparkPost/SparkPost.php +++ b/lib/SparkPost/SparkPost.php @@ -52,7 +52,7 @@ class SparkPost { * The new resource is attached to this object as well as returned * @return SparkPost\APIResource - the unwrapped resource */ - public function setupUnwrapped (string $endpoint) { + public function setupUnwrapped ($endpoint) { $this->{$endpoint} = new APIResource($this); $this->{$endpoint}->endpoint = $endpoint; |