phpDocumentor

CrossCuttingLoaderInterface

Interface CrossCuttingLoaderInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

clearRegister()  : void
getObject()  : object
In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.
registerObject()  : mixed
In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.
setRegisteredObjectsOnly()  : mixed
If RegisteredObjectsOnly is enabled, the loader returns only objects, that were registered by the registerObject method before. RegisteredObjectsOnly should be enabled in all unit tests.
useRegisteredObjectsOnly()  : bool

Methods

getObject()

In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.

public getObject(string $p_classname) : object
Parameters
$p_classname : string
Tags
throws
InvalidArgumentException
Return values
object

registerObject()

In strict mode ($strictModeEnabled=true) this method accepts classes with implemented CrossCuttingObjectInterface only. Otherwise it throws an InvalidArgumentException.

public registerObject(string $p_classname, object $object) : mixed
Parameters
$p_classname : string
$object : object
Tags
throws
InvalidArgumentException
Return values
mixed

setRegisteredObjectsOnly()

If RegisteredObjectsOnly is enabled, the loader returns only objects, that were registered by the registerObject method before. RegisteredObjectsOnly should be enabled in all unit tests.

public setRegisteredObjectsOnly(bool $bool_status) : mixed
Parameters
$bool_status : bool
Return values
mixed

Search results