PHP Class Pop\Auth\Resource

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

Protected Properties

Property Type Description
$name string Resource name

Public Methods

Method 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 method

Instantiate the resource object
public __construct ( string $name ) : Resource
$name string
return Resource

__toString() public method

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

factory() public static method

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

getName() public method

Method to get the role name
public getName ( ) : string
return string

Property Details

$name protected_oe property

Resource name
protected string $name
return string