PHP Class Ouzo\Utilities\Optional

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

Méthode Description
__call ( $name, $arguments )
__get ( $field )
fromNullable ( $object )
of ( $object )

Private Methods

Méthode Description
__construct ( $object )
_flatten ( )
_get ( )
_isPresent ( )
_map ( $closure )
_or ( $alternativeValue )
_orNull ( )
absent ( )

Method Details

__call() public méthode

public __call ( $name, $arguments )

__get() public méthode

public __get ( $field )

fromNullable() public static méthode

public static fromNullable ( $object )

of() public static méthode

public static of ( $object )