ResourceMetadata   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 50
ccs 0
cts 8
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCreationTime() 0 4 1
A getAccessTime() 0 4 1
A getModificationTime() 0 4 1
A getSize() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the puli/repository package.
5
 *
6
 * (c) Bernhard Schussek <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Puli\Repository\Api\Resource;
13
14
/**
15
 * Contains metadata about a resource.
16
 *
17
 * @since  1.0
18
 *
19
 * @author Bernhard Schussek <[email protected]>
20
 */
21
class ResourceMetadata
22
{
23
    /**
24
     * Returns when the resource was created.
25
     *
26
     * If this information is not available, the method returns 0.
27
     *
28
     * @return int A UNIX timestamp.
29
     */
30
    public function getCreationTime()
31
    {
32
        return 0;
33
    }
34
35
    /**
36
     * Returns when the resource was last accessed.
37
     *
38
     * If this information is not available, the method returns 0.
39
     *
40
     * @return int A UNIX timestamp.
41
     */
42
    public function getAccessTime()
43
    {
44
        return 0;
45
    }
46
47
    /**
48
     * Returns when the resource was last modified.
49
     *
50
     * If this information is not available, the method returns 0.
51
     *
52
     * @return int A UNIX timestamp.
53
     */
54
    public function getModificationTime()
55
    {
56
        return 0;
57
    }
58
59
    /**
60
     * Returns the size of the body in bytes.
61
     *
62
     * If this information is not available, the method returns 0.
63
     *
64
     * @return int The body size in bytes.
65
     */
66
    public function getSize()
67
    {
68
        return 0;
69
    }
70
}
71