PHP Class 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.
Afficher le fichier Open project: partkeepr/PartKeepr Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getPreferenceKey() public méthode

Returns the key of this entry.
public getPreferenceKey ( ) : string
Résultat string

getPreferenceValue() public méthode

Returns the value for this entry.
public getPreferenceValue ( ) : mixed
Résultat mixed The value

getUser() public méthode

Returns the user associated with this entry.
public getUser ( ) : User
Résultat User

setPreferenceKey() public méthode

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

setPreferenceValue() public méthode

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

setUser() public méthode

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