VocabularyDataObject::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
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