SkosProperty   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A concept_attribute_history() 0 5 1
1
<?php
2
3
namespace App\Models;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\HasMany;
7
8
/**
9
 * App\Models\SkosProperty
10
 *
11
 * @property int $id
12
 * @property string|null $created_at
13
 * @property string|null $updated_at
14
 * @property int|null $parent_id
15
 * @property int|null $inverse_id id of the inverse property
16
 * @property string $name
17
 * @property string $uri
18
 * @property string $object_type the type of the object for which this is the predicate
19
 * @property int|null $display_order Display order of properties
20
 * @property int|null $picklist_order
21
 * @property string|null $label The pretty label for the property
22
 * @property string|null $definition
23
 * @property string|null $comment
24
 * @property string|null $examples Link to example usage
25
 * @property int $is_required boolean -- id this value required
26
 * @property int $is_reciprocal boolean - subject and object must both have this property
27
 * @property int $is_singleton boolean -- is this property allowed to repeat for a concept
28
 * @property int $is_scheme boolean - is in conceptScheme domain
29
 * @property int $is_in_picklist boolean - is in the property picklist
30
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\ConceptAttributeHistory[] $concept_attribute_history
31
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereComment($value)
32
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereCreatedAt($value)
33
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereDefinition($value)
34
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereDisplayOrder($value)
35
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereExamples($value)
36
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereId($value)
37
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereInverseId($value)
38
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereIsInPicklist($value)
39
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereIsReciprocal($value)
40
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereIsRequired($value)
41
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereIsScheme($value)
42
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereIsSingleton($value)
43
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereLabel($value)
44
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereName($value)
45
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereObjectType($value)
46
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereParentId($value)
47
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty wherePicklistOrder($value)
48
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereUpdatedAt($value)
49
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SkosProperty whereUri($value)
50
 * @mixin \Eloquent
51
 */
52
class SkosProperty extends Model
53
{
54
    const TABLE        = 'reg_skos_property';
55
    protected $table   = self::TABLE;
56
    public $timestamps = false;
57
    protected $guarded = ['id'];
58
59
    public function concept_attribute_history(): ?HasMany
60
    {
61
        return $this->hasMany(ConceptAttributeHistory::class,
62
            'skos_property_id',
63
            'id');
64
    }
65
}
66