Skip to content

Commit 5d9f689

Browse files
committed
Made Balance Data property public
1 parent d4d31cc commit 5d9f689

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Account/Balance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Balance implements JsonSerializableInterface, JsonUnserializableInterface,
1515
/**
1616
* @var array
1717
*/
18-
protected $data;
18+
public $data;
1919

2020
/**
2121
* @todo Have these take null values, since we offer an unserialize option to populate

test/Account/BalanceTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,9 @@ public function testCannotDirectlySetArrayKey()
7575

7676
$this->balance['balance'] = '5.00';
7777
}
78+
79+
public function testMakeSureDataIsPubliclyVisible()
80+
{
81+
$this->assertSame('12.99', $this->balance->data['balance']);
82+
}
7883
}

0 commit comments

Comments
 (0)