Completed
Push — develop ( 92230b...218aa8 )
by Peter
02:10
created

ImageThumbAwareTrait::getThumbnailer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Webino (https://github.com/webino/)
4
 *
5
 * @link      https://github.com/webino/WebinoImageThumb/ for the canonical source repository
6
 * @copyright Copyright (c) 2016 Webino, s. r. o. (http://webino.sk/)
7
 * @license   BSD-3-Clause
8
 */
9
10
namespace WebinoImageThumb\Service;
11
12
/**
13
 * Class ImageThumbAwareTrait
14
 *
15
 * Use this trait to inject ImageThumb service.
16
 *
17
 * @author ceadreak (github.com)
18
 */
19
trait ImageThumbAwareTrait
20
{
21
    /**
22
     * @var ImageThumb
23
     */
24
    protected $thumbnailer;
25
26
    /**
27
     * @return ImageThumb|null
28
     */
29
    public function getThumbnailer()
30
    {
31
        return $this->thumbnailer;
32
    }
33
34
    /**
35
     * @param ImageThumb $thumbnailer
36
     * @return $this
37
     */
38
    public function setThumbnailer(ImageThumb $thumbnailer)
39
    {
40
        $this->thumbnailer = $thumbnailer;
41
        return $this;
42
    }
43
}
44