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

ImageThumbAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 25
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getThumbnailer() 0 4 1
A setThumbnailer() 0 5 1
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