Total Complexity | 7 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class VocabularyCategory extends DataObject |
||
7 | { |
||
8 | public function __construct($model, $resource) |
||
9 | { |
||
10 | if (!($model instanceof Model)) { |
||
11 | throw new InvalidArgumentException('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. |
||
21 | */ |
||
22 | public function getVocabularies() |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Returns the title of the category. |
||
32 | */ |
||
33 | public function getTitle() |
||
40 | } |
||
41 | |||
43 |