mirror of
https://github.com/bitinflow/accounts.git
synced 2026-11-01 05:09:07 +00:00
Create Taxation.php
This commit is contained in:
1 parent
78f570f404
commit
120bd61ae5
1 file changed
+23
@@ -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