Chunk   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
c 0
b 0
f 0
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCurrentVersion() 0 6 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: jgulledge
5
 * Date: 10/9/2017
6
 * Time: 4:07 PM
7
 */
8
9
namespace LCI\Blend\Blendable;
10
11
12
class Chunk extends Element
13
{
14
    /** @var string  */
15
    protected $opt_cache_key = 'elements/chunks';
16
17
    /** @var string ~ the xPDO class name */
18
    protected $xpdo_simple_object_class = 'modChunk';
19
20
    /**
21
     * @return \LCI\Blend\Blendable\Chunk
22
     */
23
    public function getCurrentVersion()
24
    {
25
        /** @var \LCI\Blend\Blendable\Chunk $snippet */
26
        $snippet = new self($this->modx, $this->blender, $this->getFieldName());
27
        return $snippet
28
            ->setSeedsDir($this->getSeedsDir());
29
    }
30
}
31