| 1 | <?php |
||
| 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() |
||
| 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() |
||
| 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() |
||
| 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() |
||
| 70 | } |
||
| 71 |