FileMetadata   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 47
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getMime() 0 3 1
A getModifiedDate() 0 3 1
A getIsFolder() 0 3 1
A getContents() 0 3 1
A __construct() 0 8 1
A getBytes() 0 3 1
A getName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
/*
5
 * The MIT License
6
 *
7
 * Copyright 2016 BCL Technologies.
8
 *
9
 * Permission is hereby granted, free of charge, to any person obtaining a copy
10
 * of this software and associated documentation files (the "Software"), to deal
11
 * in the Software without restriction, including without limitation the rights
12
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
 * copies of the Software, and to permit persons to whom the Software is
14
 * furnished to do so, subject to the following conditions:
15
 *
16
 * The above copyright notice and this permission notice shall be included in
17
 * all copies or substantial portions of the Software.
18
 *
19
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
 * THE SOFTWARE.
26
 */
27
28
namespace Bcl\EasyPdfCloud;
29
30
class FileMetadata
31
{
32
    private $isFolder;
33
    private $name;
34
    private $bytes;
35
    private $mime;
36
    private $modifiedDate;
37
    private $contents;
38
39
    public function __construct($isFolder, $name, $bytes, $mime, $modifiedDate, array $contents = null)
40
    {
41
        $this->isFolder = $isFolder;
42
        $this->name = $name;
43
        $this->bytes = $bytes;
44
        $this->mime = $mime;
45
        $this->modifiedDate = $modifiedDate;
46
        $this->contents = $contents;
47
    }
48
49
    public function getIsFolder()
50
    {
51
        return $this->isFolder;
52
    }
53
54
    public function getName()
55
    {
56
        return $this->name;
57
    }
58
59
    public function getBytes()
60
    {
61
        return $this->bytes;
62
    }
63
64
    public function getMime()
65
    {
66
        return $this->mime;
67
    }
68
69
    public function getModifiedDate()
70
    {
71
        return $this->modifiedDate;
72
    }
73
74
    public function getContents()
75
    {
76
        return $this->contents;
77
    }
78
}
79