Completed
Pull Request — develop (#17)
by
unknown
10:42
created

ImageThumbTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getThumbnailer() 0 4 1
A setThumbnailer() 0 6 1
1
<?php
2
    /**
3
     * Created by PhpStorm.
4
     * User: cedric
5
     * Date: 14/05/2016
6
     * Time: 19:06
7
     */
8
9
    namespace WebinoImageThumb\Service;
10
11
12
    /**
13
     * Class ImageThumbTrait
14
     *
15
     * Use this trait in controllers to inject ImageThumb service from a factory
16
     *
17
     * @package WebinoImageThumb\Service
18
     */
19
    trait ImageThumbTrait
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 0 spaces, found 4
Loading history...
20
    {
21
        /* @var ImageThumb */
22
        protected $thumbnailer;
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 8
Loading history...
23
24
        /**
25
         * @return ImageThumb
26
         */
27
        public function getThumbnailer()
0 ignored issues
show
Coding Style introduced by
Line indented incorrectly; expected 4 spaces, found 8
Loading history...
28
        {
29
            return $this->thumbnailer;
30
        }
31
32
        /**
33
         * @param ImageThumb $thumbnailer
34
         *
35
         * @return $this
36
         */
37
        public function setThumbnailer(ImageThumb $thumbnailer)
38
        {
39
            $this->thumbnailer = $thumbnailer;
40
41
            return $this;
42
        }
43
    }