UserBirthday
extends Facade
in package
Interface UserBirthday.
Table of Contents
Methods
- getAgeFromBirthday() : int|null
- getBirthdayFormats() : array<string|int, mixed>
- getBirthdayFormatsWithoutYear() : array<string|int, mixed>
- getCurrentAgeByUser() : int|null
- getFormattedBirthday() : string
- getFormattedUpcomingAgeByUser() : string|null
- getTranslatedBirthday() : string|null
- getFacadeAccessor() : string
Methods
getAgeFromBirthday()
public
static getAgeFromBirthday(string|null $birthday) : int|null
Parameters
- $birthday : string|null
Return values
int|nullgetBirthdayFormats()
public
static getBirthdayFormats() : array<string|int, mixed>
Return values
array<string|int, mixed>getBirthdayFormatsWithoutYear()
public
static getBirthdayFormatsWithoutYear() : array<string|int, mixed>
Return values
array<string|int, mixed>getCurrentAgeByUser()
public
static getCurrentAgeByUser(User $user) : int|null
Parameters
- $user : User
Return values
int|nullgetFormattedBirthday()
public
static getFormattedBirthday(User $context, User $user) : string
Parameters
Return values
stringgetFormattedUpcomingAgeByUser()
public
static getFormattedUpcomingAgeByUser(User $user) : string|null
Parameters
- $user : User
Return values
string|nullgetTranslatedBirthday()
public
static getTranslatedBirthday(User $user) : string|null
Parameters
- $user : User
Return values
string|nullgetFacadeAccessor()
protected
static getFacadeAccessor() : string