Trait Yiisoft\Rbac\Php\FileStorageTrait
| Implemented by | Yiisoft\Rbac\Php\AssignmentsStorage, Yiisoft\Rbac\Php\ItemsStorage |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getFileUpdatedAt() | Yiisoft\Rbac\Php\FileStorageTrait |
Method Details
| public integer getFileUpdatedAt ( ) |
public function getFileUpdatedAt(): int
{
$getFileUpdatedAt = $this->getFileUpdatedAt;
$fileUpdatedAt = $getFileUpdatedAt($this->filePath);
if (!is_int($fileUpdatedAt)) {
throw new RuntimeException('getFileUpdatedAt callable must return a UNIX timestamp.');
}
return $fileUpdatedAt;
}
Signup or Login in order to comment.