Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RolePlayObjections | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| newFactory | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Models; |
| 4 | |
| 5 | use Database\Factories\Http\Models\RolePlayObjectionsFactory; |
| 6 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 7 | |
| 8 | /** |
| 9 | * @property string $call_type |
| 10 | * @property string $category |
| 11 | * @property array|null $options |
| 12 | * @property string|null $status |
| 13 | * @property string|null $company_size |
| 14 | */ |
| 15 | class RolePlayObjections extends Moloquent |
| 16 | { |
| 17 | use HasFactory; |
| 18 | |
| 19 | protected $table = 'roleplay_objections'; |
| 20 | |
| 21 | protected $fillable = [ |
| 22 | 'call_type', |
| 23 | 'category', |
| 24 | 'options', |
| 25 | 'status', |
| 26 | 'company_size', |
| 27 | ]; |
| 28 | |
| 29 | /** |
| 30 | * Allowed values for the company_size targeting field. |
| 31 | * |
| 32 | * Defaults seeded with one of these values; user-added objections |
| 33 | * are always 'all'. At session-time, this is matched against the |
| 34 | * selected ICP's company size to filter applicable objections. |
| 35 | */ |
| 36 | public const COMPANY_SIZE_VALUES = ['small', 'medium', 'large', 'all']; |
| 37 | |
| 38 | protected static function newFactory() |
| 39 | { |
| 40 | return RolePlayObjectionsFactory::new(); |
| 41 | } |
| 42 | } |