Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Adds settable trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Oct 21, 2016
1 parent 51b4aaa commit c9536e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
class Customer
{
use Gettable;
use Gettable, Settable;

/**
* The Customer ID.
Expand Down
2 changes: 1 addition & 1 deletion tests/CustomerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9536e7

Please sign in to comment.