MiniAsset\AssetTarget::modifiedTime PHP Метод

modifiedTime() публичный Метод

public modifiedTime ( ) : integer
Результат integer
    public function modifiedTime()
    {
        if (file_exists($this->path)) {
            return filemtime($this->path);
        }
        return 0;
    }

Usage Example

Пример #1
0
 public function testModifiedTimeExisting()
 {
     $target = new AssetTarget(__FILE__);
     $this->assertSame(filemtime(__FILE__), $target->modifiedTime());
 }