mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
40 lines
841 B
PHP
40 lines
841 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Wallets\Standards\Validators;
|
|
|
|
use App\Classes\General\Abstracts\AbstractValidation;
|
|
use App\Classes\Modules\Wallets\DataTransferObjects\WalletObject;
|
|
|
|
class CompanyWalletValidation extends AbstractValidation
|
|
{
|
|
/**
|
|
* @param WalletObject $object
|
|
* @return array
|
|
*/
|
|
protected function data($object): array
|
|
{
|
|
return [
|
|
'company_module_id' => $object->getCompanyModuleId(),
|
|
'currency_id' => $object->getCurrency(),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function rules(): array
|
|
{
|
|
return [
|
|
'company_module_id' => 'required',
|
|
'currency_id' => 'required',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function messages(): array
|
|
{
|
|
return [];
|
|
}
|
|
} |