Improve bunq import.

This commit is contained in:
James Cole
2018-03-10 20:25:42 +01:00
parent 85dc1263ea
commit 0c2b35e542
13 changed files with 490 additions and 299 deletions

View File

@@ -31,6 +31,18 @@ class BunqId
/** @var int */
private $id = 0;
/**
* BunqId constructor.
*
* @param null $data
*/
public function __construct($data = null)
{
if (!is_null($data)) {
$this->id = $data['id'];
}
}
/**
* @return int
*/
@@ -46,4 +58,14 @@ class BunqId
{
$this->id = $id;
}
/**
* @return array
*/
public function toArray(): array
{
return [
'id' => $this->id,
];
}
}