PHP Class AcMailerTest\ServiceManager\ServiceManagerMock

Author: Alejandro Celaya Alastrué
Inheritance: implements Interop\Container\ContainerInterface
ファイルを表示 Open project: acelaya/zf2-acmailer

Public Methods

Method Description
__construct ( array $services = [] )
get ( string $name ) : object | array Retrieve a registered instance
has ( string | array $name ) : boolean Check for a registered instance
set ( $key, $service ) Sets the service with defined key

Method Details

__construct() public method

public __construct ( array $services = [] )
$services array

get() public method

Retrieve a registered instance
public get ( string $name ) : object | array
$name string
return object | array

has() public method

Check for a registered instance
public has ( string | array $name ) : boolean
$name string | array
return boolean

set() public method

Sets the service with defined key
public set ( $key, $service )
$key
$service