SlaxWeb Framework
All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
SlaxWeb\Hooks\Hook Class Reference

Public Member Functions

 __set (string $param, $value)
 
 create (string $name, callable $definition)
 

Protected Attributes

 $_name = ""
 
 $_definition = null
 

Member Function Documentation

SlaxWeb\Hooks\Hook::__set ( string  $param,
  $value 
)

Set magic method

Used to set protected class properties, and ensures that 'name' and 'definition' properties can not be overwritten.

Parameters
string$paramName of the property
mixed$valueValue of the property
Returns
void
SlaxWeb\Hooks\Hook::create ( string  $name,
callable  $definition 
)

Create the Hook

Create the hook by adding its name and definition to the protected properties.

Parameters
string$nameName of the hook
callable$definitionDefinition of the hook
Returns
void

The documentation for this class was generated from the following file: