Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
GoogleAdsCampaign
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 jsonSerialize
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Factories\HasFactory;
6use Illuminate\Database\Eloquent\Model;
7use Illuminate\Database\Eloquent\Builder;
8use Illuminate\Database\Eloquent\Relations\HasOne;
9use Illuminate\Database\Eloquent\Relations\HasMany;
10use Illuminate\Database\Eloquent\Relations\BelongsTo;
11use Illuminate\Database\Eloquent\Relations\BelongsToMany;
12
13class 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}