PHP Class ManaPHP\Component

Inheritance: implements manaphp\ComponentInterface
Mostra file Open project: manaphp/manaphp Class Usage Examples

Protected Properties

Property Type Description
$_dependencyInjector Di

Public Methods

Method Description
__debugInfo ( ) : array
__get ( string $name ) : mixed Magic method __get
__isset ( string $name ) : boolean
__set ( string $name, mixed $value ) : void
attachEvent ( string $event, callable $handler ) : static Attach a listener to the events manager
dump ( ) : array
fireEvent ( string $event, array $data = [] ) : boolean | null Fires an event in the events manager causing that the active listeners will be notified about it
getDependencyInjector ( ) : Di Returns the internal dependency injector
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static Sets the dependency injector

Method Details

__debugInfo() public method

public __debugInfo ( ) : array
return array

__get() public method

Magic method __get
public __get ( string $name ) : mixed
$name string
return mixed

__isset() public method

public __isset ( string $name ) : boolean
$name string
return boolean

__set() public method

public __set ( string $name, mixed $value ) : void
$name string
$value mixed
return void

attachEvent() public method

Attach a listener to the events manager
public attachEvent ( string $event, callable $handler ) : static
$event string
$handler callable
return static

dump() public method

public dump ( ) : array
return array

fireEvent() public method

Fires an event in the events manager causing that the active listeners will be notified about it
public fireEvent ( string $event, array $data = [] ) : boolean | null
$event string
$data array
return boolean | null

getDependencyInjector() public method

Returns the internal dependency injector
public getDependencyInjector ( ) : Di
return Di

setDependencyInjector() public method

Sets the dependency injector
public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
return static

Property Details

$_dependencyInjector protected_oe property

protected Di,ManaPHP $_dependencyInjector
return Di