mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-21 13:34:00 +00:00
42 lines
873 B
PHP
42 lines
873 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Companies\Standards\Validators;
|
|
|
|
use App\Classes\General\Abstracts\AbstractValidation;
|
|
use App\Classes\Modules\Companies\DataTransferObjects\CompanyObject;
|
|
|
|
class CompanyModuleValidation extends AbstractValidation
|
|
{
|
|
/**
|
|
* @param CompanyObject $object
|
|
* @return array
|
|
*/
|
|
protected function data($object): array
|
|
{
|
|
return [
|
|
'unity_hash_id' => $object->getUnityHashId(),
|
|
'unity_signature' => $object->getUnitySignature(),
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @param string $type
|
|
* @return array
|
|
*/
|
|
protected function rules(): array
|
|
{
|
|
return [
|
|
'unity_hash_id' => 'required',
|
|
'unity_signature' => 'required'
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function messages(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|