ResourceMetadata::getSize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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