Binary::getFormat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
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