Completed
Push — collection-position ( 391291...eb797c )
by Arnaud
02:14
created

Collection::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
/*
3
 * Copyright (c) Arnaud Ligny <[email protected]>
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Cecil\Collection\Taxonomy;
10
11
use Cecil\Collection\Collection as CecilCollection;
12
use Cecil\Collection\ItemInterface;
13
14
/**
15
 * Class Collection.
16
 */
17
class Collection extends CecilCollection
18
{
19
    /**
20
     * Return a Vocabulary collection (creates it if not exists).
21
     * {@inheritdoc}
22
     */
23
    /*
24
    public function get(string $id): ItemInterface
25
    {
26
        if (!$this->has($id)) {
27
            $this->add(new Vocabulary($id));
28
        }
29
30
        return parent::get($id);
31
    }
32
    */
33
}
34