Skip to content

Commit

Permalink
Merge branch 'release/0.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Dec 9, 2023
2 parents ed332f3 + e4eae88 commit 5063f15
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.0
0.4.1
38 changes: 38 additions & 0 deletions src/Department.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

namespace Spinen\Halo;

use Spinen\Halo\Support\Model;

/**
* Class Department
*
* @property array $managers
* @property int $accounts_override_mailbox
* @property int $id
* @property int $organisation_id
* @property int $type
* @property string $guid
* @property string $long_name
* @property string $name
* @property string $organisation_name
*/
class Department extends Model
{
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'accounts_override_mailbox' => 'int',
'id' => 'int',
'organisation_id' => 'int',
'type' => 'int',
];

/**
* Is the model readonly?
*/
protected bool $readonlyModel = true;
}
5 changes: 0 additions & 5 deletions src/Organisation.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ class Organisation extends Model
* @var array
*/
protected $casts = [
// 'address' => 'array',
'allowall_tickettypes' => 'bool',
// 'allowed_tickettypes' => 'array',
// 'customfields' => 'array',
'deliverysite' => 'int',
// 'departments' => 'array',
// 'faqlists' => 'array',
'id' => 'int',
'linked_client_id' => 'int',
'messagegroup_id' => 'int',
Expand Down

0 comments on commit 5063f15

Please sign in to comment.