Binary   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 53
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getContent() 0 4 1
A getMimeType() 0 4 1
A getFormat() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the `liip/LiipImagineBundle` project.
5
 *
6
 * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Liip\ImagineBundle\Model;
13
14
use Liip\ImagineBundle\Binary\BinaryInterface;
15
16
class Binary implements BinaryInterface
17
{
18
    /**
19
     * @var string
20
     */
21
    protected $content;
22
23
    /**
24
     * @var string
25
     */
26
    protected $mimeType;
27
28
    /**
29
     * @var string
30
     */
31
    protected $format;
32
33
    /**
34
     * @param string $content
35
     * @param string $mimeType
36
     * @param string $format
37
     */
38
    public function __construct($content, $mimeType, $format = null)
39
    {
40
        $this->content = $content;
41
        $this->mimeType = $mimeType;
42
        $this->format = $format;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getContent()
49
    {
50
        return $this->content;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getMimeType()
57
    {
58
        return $this->mimeType;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getFormat()
65
    {
66
        return $this->format;
67
    }
68
}
69