Completed
Push — v3.x ( 8b6982 )
by Oscar
01:53
created

CommonTrait::setAnimated()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Imagecow\Adapters;
5
6
/**
7
 * Base class extended by other libraries with common methods and properties.
8
 */
9
trait CommonTrait
10
{
11
    private $quality = 86;
12
    private $background = [255, 255, 255];
13
    private $animated = false;
14
    private $progressive = false;
15
16
    public function setCompressionQuality(int $quality)
17
    {
18
        $this->quality = $quality;
19
    }
20
21
    public function setBackground(array $background)
22
    {
23
        $this->background = $background;
24
    }
25
26
    public function setAnimated(bool $animated)
27
    {
28
        $this->animated = $animated;
29
    }
30
}
31