PHP Class Unicodeveloper\Emoji\Emoji

Show file Open project: unicodeveloper/laravel-emoji

Public Methods

Method Description
__call ( string $method, array $parameters ) Ensure that a proper exception is thrown for methods that do not exist
findByAlias ( string $emojiName = null ) : string Get the emoji by passing the commonly used emoji name
findByName ( string $emojiName = null ) : string Get the emoji by passing the commonly used emoji name Alias for findByAlias
findByUnicode ( string $unicode = null ) : string Get the emoji name by passing the unicode value

Private Methods

Method Description
getEmojis ( ) : array Get the Emojis from emoji.php

Method Details

__call() public method

Ensure that a proper exception is thrown for methods that do not exist
public __call ( string $method, array $parameters )
$method string
$parameters array

findByAlias() public method

Get the emoji by passing the commonly used emoji name
public findByAlias ( string $emojiName = null ) : string
$emojiName string
return string

findByName() public method

Get the emoji by passing the commonly used emoji name Alias for findByAlias
public findByName ( string $emojiName = null ) : string
$emojiName string
return string

findByUnicode() public method

Get the emoji name by passing the unicode value
public findByUnicode ( string $unicode = null ) : string
$unicode string
return string