0 follower

Trait Yiisoft\Rbac\Php\FileStorageTrait

Implemented byYiisoft\Rbac\Php\AssignmentsStorage, Yiisoft\Rbac\Php\ItemsStorage

Public Methods

Hide inherited methods

Method Description Defined By
getFileUpdatedAt() Yiisoft\Rbac\Php\FileStorageTrait

Method Details

Hide inherited methods

getFileUpdatedAt() public method

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;
}