Passed
Push — master ( e515a3...13e6ec )
by Vladimir
02:11
created

AbstractAlgorithm::setHeight()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * @link https://github.com/Vintage-web-production/yii2-tinify
4
 * @copyright Copyright (c) 2017 Vintage Web Production
5
 * @license BSD 3-Clause License
6
 */
7
8
namespace vintage\tinify\algorithms;
9
10
use yii\base\Object;
11
12
/**
13
 * Abstract algorithm class.
14
 *
15
 * @author Vladimir Kuprienko <[email protected]>
16
 * @since 1.1
17
 */
18
abstract class AbstractAlgorithm extends Object implements TinifyAlgorithmInterface
19
{
20
    /**
21
     * @var int Image width.
22
     */
23
    protected $width;
24
    /**
25
     * @var int Image height.
26
     */
27
    protected $height;
28
29
30
    /**
31
     * @inheritdoc
32
     */
33
    public function setWidth($width)
34
    {
35
        $this->width = $width;
36
    }
37
38
    /**
39
     * @inheritdoc
40
     */
41
    public function setHeight($height)
42
    {
43
        $this->height = $height;
44
    }
45
}
46