PHP 클래스 PartKeepr\AuthBundle\Entity\UserPreference

User preferences are a simple key => value mechanism, where the developer can specify the key and value himself. Note that values are stored internally as serialized PHP values to keep their type.
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
getPreferenceKey ( ) : string Returns the key of this entry.
getPreferenceValue ( ) : mixed Returns the value for this entry.
getUser ( ) : User Returns the user associated with this entry.
setPreferenceKey ( string $key ) Sets the key for this user preference.
setPreferenceValue ( mixed $value ) Sets the value for this entry.
setUser ( User $user ) Sets the user for this entry.

메소드 상세

getPreferenceKey() 공개 메소드

Returns the key of this entry.
public getPreferenceKey ( ) : string
리턴 string

getPreferenceValue() 공개 메소드

Returns the value for this entry.
public getPreferenceValue ( ) : mixed
리턴 mixed The value

getUser() 공개 메소드

Returns the user associated with this entry.
public getUser ( ) : User
리턴 User

setPreferenceKey() 공개 메소드

Sets the key for this user preference.
public setPreferenceKey ( string $key )
$key string The key name

setPreferenceValue() 공개 메소드

Sets the value for this entry.
public setPreferenceValue ( mixed $value )
$value mixed

setUser() 공개 메소드

Sets the user for this entry.
public setUser ( User $user )
$user User