Create Taxation.php

This commit is contained in:
2022-09-29 14:56:04 +02:00
committed by GitHub
parent 78f570f404
commit 120bd61ae5

View 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;
}
}