Total Complexity | 6 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Datastore extends Model |
||
13 | { |
||
14 | |||
15 | use DatastoreAttribute; |
||
1 ignored issue
–
show
|
|||
16 | |||
17 | protected $table = 'datastore'; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $dates = [ |
||
23 | 'start_date', |
||
24 | 'end_date', |
||
25 | 'updated_at', |
||
26 | 'created_at' |
||
27 | ]; |
||
28 | |||
29 | |||
30 | public function properties() |
||
31 | { |
||
32 | return $this->hasMany(Datastore::class); |
||
33 | } |
||
34 | |||
35 | public function assets() |
||
36 | { |
||
37 | return $this->belongsTo(Datastore::class, 'datastore_id'); |
||
38 | } |
||
39 | |||
40 | public function page() |
||
43 | } |
||
44 | |||
45 | public function items(){ |
||
46 | return $this->hasMany(DatastoreDatastore::class, 'datastore2_id', 'id'); |
||
47 | } |
||
48 | |||
49 | public function parents(){ |
||
51 | |||
52 | } |
||
53 | |||
54 | |||
55 | /** |
||
56 | * The has Many Relationship |
||
57 | * |
||
58 | * @var array |
||
59 | */ |
||
60 | public function comments() |
||
63 | } |
||
64 | |||
65 | |||
69 |