| 1 |
<?php |
| 2 |
|
| 3 |
namespace App\Billingo\Models; |
| 4 |
|
| 5 |
use App\Billingo\Contracts\ValidableInterface; |
| 6 |
use App\Billingo\Traits\WithFactory; |
| 7 |
use App\Billingo\Validation\DiscountValidator; |
| 8 |
|
| 9 |
/** |
| 10 |
* @property string $type |
| 11 |
* @property float $value |
| 12 |
*/ |
| 13 |
class Discount extends BillingoModel |
| 14 |
{ |
| 15 |
|
| 16 |
use WithFactory; |
| 17 |
|
| 18 |
protected function getValidator(): ValidableInterface |
| 19 |
{ |
| 20 |
return new DiscountValidator(); |
| 21 |
} |
| 22 |
} |
| 23 |
|