MetaFox

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|null

getBirthdayFormats()

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|null

getFormattedBirthday()

public static getFormattedBirthday(User $context, User $user) : string
Parameters
$context : User
$user : User
Return values
string

getFormattedUpcomingAgeByUser()

public static getFormattedUpcomingAgeByUser(User $user) : string|null
Parameters
$user : User
Return values
string|null

getTranslatedBirthday()

public static getTranslatedBirthday(User $user) : string|null
Parameters
$user : User
Return values
string|null

getFacadeAccessor()

protected static getFacadeAccessor() : string
Return values
string

        
On this page

Search results