Skip to content

Commit

Permalink
Merge pull request #4 from srimanaravind/tenantNameXeroTenant
Browse files Browse the repository at this point in the history
Adding Tenant name into XeroTeanant
  • Loading branch information
calcinai authored Jun 23, 2020
2 parents 50e450b + 2fabe69 commit fd2ad81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XeroTenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class XeroTenant
*/
public $tenantType;

/**
* @var string
*/
public $tenantName;

/**
* @var \DateTime
*/
Expand All @@ -46,6 +51,7 @@ public static function fromArray($data)
$self->id = $data['id'];
$self->tenantId = $data['tenantId'];
$self->tenantType = $data['tenantType'];
$self->tenantName = $data['tenantName'];
$self->createdDateUtc = new \DateTime($data['createdDateUtc']);
$self->updatedDateUtc = $self->updatedDateUtc ? new \DateTime($data['updatedDateUtc']) : null;

Expand Down

0 comments on commit fd2ad81

Please sign in to comment.