mirror of
https://github.com/bitinflow/accounts.git
synced 2026-03-19 00:15:52 +00:00
Create Taxation.php
This commit is contained in:
23
src/Accounts/Traits/BitinflowPaymentsWallet/Taxation.php
Normal file
23
src/Accounts/Traits/BitinflowPaymentsWallet/Taxation.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Bitinflow\Accounts\Traits\BitinflowPaymentsWallet;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
|
||||||
|
class Taxation
|
||||||
|
{
|
||||||
|
public function __construct(protected User $user)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get vat from user.
|
||||||
|
*
|
||||||
|
* @return int|null
|
||||||
|
*/
|
||||||
|
public function getVat(): ?int
|
||||||
|
{
|
||||||
|
return $this->user->getPaymentsUser()->data->taxation->vat;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user