Skip to content

Commit

Permalink
chore: doc asset
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni authored Feb 22, 2024
1 parent 4d94af1 commit 63616dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,19 @@ every day::

class DateVersionStrategy implements VersionStrategyInterface
{
private $version;
private string $version;

public function __construct()
{
$this->version = date('Ymd');
}

public function getVersion(string $path)
public function getVersion(string $path): string
{
return $this->version;
}

public function applyVersion(string $path)
public function applyVersion(string $path): string
{
return sprintf('%s?v=%s', $path, $this->getVersion($path));
}
Expand Down

0 comments on commit 63616dc

Please sign in to comment.