Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
GoogleAdsCampaign | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
jsonSerialize | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Models; |
4 | |
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
6 | use Illuminate\Database\Eloquent\Model; |
7 | use Illuminate\Database\Eloquent\Builder; |
8 | use Illuminate\Database\Eloquent\Relations\HasOne; |
9 | use Illuminate\Database\Eloquent\Relations\HasMany; |
10 | use Illuminate\Database\Eloquent\Relations\BelongsTo; |
11 | use Illuminate\Database\Eloquent\Relations\BelongsToMany; |
12 | |
13 | class GoogleAdsCampaign extends Model |
14 | { |
15 | use HasFactory; |
16 | |
17 | protected $table = 'google_ads_campaigns'; |
18 | |
19 | /** |
20 | * Serialization |
21 | */ |
22 | public function jsonSerialize() |
23 | { |
24 | return [ |
25 | 'campaign_id' => $this->campaign_id, |
26 | 'campaign_name' => $this->campaign_name, |
27 | ]; |
28 | } // jsonSerialize |
29 | } |