PHP 트레잇 Jose\Object\Storable

파일 보기 프로젝트 열기: spomky-labs/jose

보호된 프로퍼티들

프로퍼티 타입 설명
$file_modification_time integer | null
$filename string
$object JsonSerializable

공개 메소드들

메소드 설명
delete ( )
getLastModificationTime ( ) : integer | null
regen ( )
setFilename ( string $filename )

보호된 메소드들

메소드 설명
createAndSaveObject ( )
createNewObject ( ) : JsonSerializable
createObjectFromFileContent ( array $file_content ) : JsonSerializable
getFileContent ( ) : array | null
getFilename ( ) : string
getObject ( ) : JsonSerializable
hasFileBeenUpdated ( ) : boolean
loadObjectIfNeeded ( )
saveObject ( JsonSerializable $object )
setObject ( JsonSerializable $object )

메소드 상세

createAndSaveObject() 보호된 메소드

protected createAndSaveObject ( )

createNewObject() 추상적인 보호된 메소드

abstract protected createNewObject ( ) : JsonSerializable
리턴 JsonSerializable

createObjectFromFileContent() 추상적인 보호된 메소드

abstract protected createObjectFromFileContent ( array $file_content ) : JsonSerializable
$file_content array
리턴 JsonSerializable

delete() 공개 메소드

public delete ( )

getFileContent() 보호된 메소드

protected getFileContent ( ) : array | null
리턴 array | null

getFilename() 보호된 메소드

protected getFilename ( ) : string
리턴 string

getLastModificationTime() 공개 메소드

public getLastModificationTime ( ) : integer | null
리턴 integer | null

getObject() 보호된 메소드

protected getObject ( ) : JsonSerializable
리턴 JsonSerializable

hasFileBeenUpdated() 보호된 메소드

protected hasFileBeenUpdated ( ) : boolean
리턴 boolean

loadObjectIfNeeded() 보호된 메소드

protected loadObjectIfNeeded ( )

regen() 공개 메소드

public regen ( )

saveObject() 보호된 메소드

protected saveObject ( JsonSerializable $object )
$object JsonSerializable

setFilename() 공개 메소드

public setFilename ( string $filename )
$filename string

setObject() 보호된 메소드

protected setObject ( JsonSerializable $object )
$object JsonSerializable

프로퍼티 상세

$file_modification_time 보호되어 있는 프로퍼티

protected int|null $file_modification_time
리턴 integer | null

$filename 보호되어 있는 프로퍼티

protected string $filename
리턴 string

$object 보호되어 있는 프로퍼티

protected JsonSerializable $object
리턴 JsonSerializable