for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the puli/repository package.
*
* (c) Bernhard Schussek <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Puli\Repository\Api\Resource;
/**
* Contains metadata about a resource.
* @since 1.0
* @author Bernhard Schussek <[email protected]>
class ResourceMetadata
{
* Returns when the resource was created.
* If this information is not available, the method returns 0.
* @return int A UNIX timestamp.
public function getCreationTime()
return 0;
}
* Returns when the resource was last accessed.
public function getAccessTime()
* Returns when the resource was last modified.
public function getModificationTime()
* Returns the size of the body in bytes.
* @return int The body size in bytes.
public function getSize()