VocabularyDataObject   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/**
4
 * Wraps a vocabulary object in the DataObject class.
5
 */
6
class VocabularyDataObject extends DataObject
7
{
8
    /**
9
     * Vocabulary instance where this object originated.
10
     * @property object $vocab
11
     */
12
    protected $vocab;
13
14
    /**
15
     * Needs the following parameters.
16
     * @param Model $model
17
     * @param Vocabulary $vocab
18
     * @param EasyRdf\Resource $resource
19
     */
20
    public function __construct($model, $vocab, $resource)
21
    {
22
        parent::__construct($model, $resource);
23
24
        $this->vocab = $vocab;
25
    }
26
27
}
28