PHP Class Pop\Auth\Resource

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$name string Resource name

Méthodes publiques

Méthode Description
__construct ( string $name ) : Resource Constructor
__toString ( ) : string Method to return the string value of the name of the role
factory ( string $name ) : Resource Static method to instantiate the resource object and return itself to facilitate chaining methods together.
getName ( ) : string Method to get the role name

Method Details

__construct() public méthode

Instantiate the resource object
public __construct ( string $name ) : Resource
$name string
Résultat Resource

__toString() public méthode

Method to return the string value of the name of the role
public __toString ( ) : string
Résultat string

factory() public static méthode

Static method to instantiate the resource object and return itself to facilitate chaining methods together.
public static factory ( string $name ) : Resource
$name string
Résultat Resource

getName() public méthode

Method to get the role name
public getName ( ) : string
Résultat string

Property Details

$name protected_oe property

Resource name
protected string $name
Résultat string