From c9536e705778d8264e934d731765ba8b229c84f1 Mon Sep 17 00:00:00 2001 From: Craig Paul Date: Fri, 21 Oct 2016 11:04:54 -0600 Subject: [PATCH] Adds settable trait --- src/Customer.php | 2 +- tests/CustomerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Customer.php b/src/Customer.php index 141ac70..0c328af 100644 --- a/src/Customer.php +++ b/src/Customer.php @@ -12,7 +12,7 @@ */ class Customer { - use Gettable; + use Gettable, Settable; /** * The Customer ID. diff --git a/tests/CustomerTest.php b/tests/CustomerTest.php index 3dbc855..f2d16d3 100644 --- a/tests/CustomerTest.php +++ b/tests/CustomerTest.php @@ -20,7 +20,7 @@ public function it_can_instantiate_via_the_constructor() public function it_can_instantiate_via_a_static_create_method() { $customer = Customer::create(); - + $this->assertEquals(Customer::class, get_class($customer)); $this->assertObjectHasAttribute('id', $customer); $this->assertObjectHasAttribute('email', $customer);