| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models\Partner; |
| 4 |
|
| 5 |
use App\Billingo\Models\Address; |
| 6 |
use App\Billingo\Models\BillingoModel; |
| 7 |
use App\Billingo\Contracts\ValidableInterface; |
| 8 |
use App\Billingo\Traits\WithFactory; |
| 9 |
use App\Billingo\Validation\Partner\PartnerShippingValidator; |
| 10 |
|
| 11 |
/** |
| 12 |
* @property boolean $match |
| 13 |
* @property string $name |
| 14 |
* @property string $mode |
| 15 |
* @property Address $address |
| 16 |
*/ |
| 17 |
class PartnerShipping extends BillingoModel |
| 18 |
{ |
| 19 |
use WithFactory; |
| 20 |
|
| 21 |
protected array $cast = [ |
| 22 |
'address' => Address::class, |
| 23 |
]; |
| 24 |
|
| 25 |
protected function getValidator(): ValidableInterface |
| 26 |
{ |
| 27 |
return new PartnerShippingValidator(); |
| 28 |
} |
| 29 |
} |
| 30 |
|