Code Duplication    Length = 10-10 lines in 2 locations

model/DataObject.php 1 location

@@ 26-35 (lines=10) @@
23
     * @param Model $model
24
     * @param EasyRdf_Resource $resource
25
     */
26
    public function __construct($model, $resource)
27
    {
28
        if (!($model instanceof Model) || !($resource instanceof EasyRdf_Resource)) {
29
            throw new Exception('Invalid constructor parameter given to DataObject.');
30
        }
31
32
        $this->model = $model;
33
        $this->resource = $resource;
34
        $this->order = array();
35
    }
36
37
    /**
38
     * Generates and makes a query into a external vocabulary for an exact

model/VocabularyCategory.php 1 location

@@ 8-17 (lines=10) @@
5
 */
6
class VocabularyCategory extends DataObject
7
{
8
    public function __construct($model, $resource)
9
    {
10
        if (!($model instanceof Model)) {
11
            throw new Exception('Invalid constructor parameter given to DataObject.');
12
        }
13
14
        $this->model = $model;
15
        $this->resource = $resource;
16
        $this->order = array();
17
    }
18
19
    /**
20
     * Returns all vocabularies in the category.