This repository has been archived by the owner on May 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 add entities for leaves, myorganizationprofile
- Loading branch information
1 parent
c667b5a
commit 001cdb5
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Valsplat\Simplicate\Entities; | ||
|
||
use Valsplat\Simplicate\Actions; | ||
use Valsplat\Simplicate\Entity; | ||
|
||
class Leave extends Entity | ||
{ | ||
use Actions\Getable; | ||
use Actions\Listable; | ||
use Actions\Storable; | ||
//use Actions\Deletable; | ||
|
||
protected $fillable = [ | ||
'employee_id', | ||
'leave_type_id', | ||
'start_date', | ||
'end_date', | ||
'year', | ||
'hours', | ||
'description' | ||
]; | ||
|
||
protected $endpoint = 'hrm/leave/'; | ||
// protected $namespace = ''; | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Valsplat/Simplicate/Entities/MyOrganizationProfile.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Valsplat\Simplicate\Entities; | ||
|
||
use Valsplat\Simplicate\Actions; | ||
use Valsplat\Simplicate\Entity; | ||
|
||
class MyOrganizationProfile extends Entity | ||
{ | ||
use Actions\Getable; | ||
use Actions\Listable; | ||
// use Actions\Storable; | ||
// use Actions\Deletable; | ||
|
||
protected $fillable = [ | ||
'organization_id', | ||
'name', | ||
'coc_code', | ||
'vat_number', | ||
'bank_account', | ||
'blocked' | ||
]; | ||
|
||
protected $endpoint = 'crm/myorganizationprofile/'; | ||
// protected $namespace = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters