getTimestamp() 공개 메소드

Will either read the cached version, or the on disk version. If no timestamp is found for a file, a new time will be generated and saved. If timestamps are disabled, false will be returned.
public getTimestamp ( AssetTarget $build ) : mixed
$build MiniAsset\AssetTarget The build to get a timestamp for.
리턴 mixed The last build time, or false.
 public function testInvalidateAndFinalizeBuildTimestamp()
 {
     $writer = new AssetWriter(['js' => true, 'css' => false], TMP);
     $cacheName = $writer->buildCacheName($this->target);
     $writer->invalidate($this->target);
     $invalidatedCacheName = $writer->buildCacheName($this->target);
     $this->assertNotEquals($cacheName, $invalidatedCacheName);
     $time = $writer->getTimestamp($this->target);
     $writer->finalize($this->target);
     $finalizedCacheName = $writer->buildCacheName($this->target);
     $this->assertEquals($cacheName, $finalizedCacheName);
     $finalizedTime = $writer->getTimestamp($this->target);
     $this->assertEquals($time, $finalizedTime);
 }