1 | <?php |
||
8 | class DatabaseVisitor extends Model implements VisitorInterface |
||
9 | { |
||
10 | protected $primaryKey = 'visitor_id'; |
||
11 | protected $table = 'ab_visitors'; |
||
12 | protected $fillable = [ |
||
13 | 'visitor_id', |
||
14 | 'experiment_id', |
||
15 | ]; |
||
16 | |||
17 | public function experiment() |
||
21 | |||
22 | public function hasExperiment() |
||
26 | |||
27 | public function getExperiment() |
||
31 | |||
32 | public function setExperiment(Experiment $next) |
||
37 | } |
||
38 |