Class definitions for a single class

package Default

 Methods

__construct()

__construct(string $class) 

Parameters

$class

string

addMethod()

addMethod(string $method, mixed|boolean|null $isRequired = null) : \Zend\Di\Definition\ClassDefinition
fluent This method is part of a fluent interface and will return the same instance

Parameters

$method

string

$isRequired

mixedbooleannull

Returns

\Zend\Di\Definition\ClassDefinition

addMethodParameter()

addMethodParameter($method, $parameterName, array $parameterInfo) : \Zend\Di\Definition\ClassDefinition

Parameters

$method

$parameterName

$parameterInfo

array

(keys: required, type)

Returns

\Zend\Di\Definition\ClassDefinition

Return the supertypes for this class

getClassSupertypes(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClassSupertypes()

Parameters

$class

Retrieves classes in this definition

getClasses() 
inherited_from \Zend\Di\Definition\DefinitionInterface::getClasses()

getInstantiator()

getInstantiator(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getInstantiator()

Parameters

$class

getMethodParameters() return information about a methods parameters.

getMethodParameters(string $class, string $method) 

Should return an ordered named array of parameters for a given method. Each value should be an array, of length 4 with the following information:

array( 0, // string|null: Type Name (if it exists) 1, // bool: whether this param is required 2, // string: fully qualified path to this parameter 3, // mixed: default value );

inherited_from \Zend\Di\Definition\DefinitionInterface::getMethodParameters()

Parameters

$class

$method

Return an array of the injection methods for a given class

getMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::getMethods()

Parameters

$class

Return whether the class exists in this definition

hasClass(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasClass()

Parameters

$class

hasMethod()

hasMethod(string $class, string $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethod()

Parameters

$class

$method

hasMethodParameters()

hasMethodParameters($class, $method) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethodParameters()

Parameters

$class

$method

Return if there are injection methods

hasMethods(string $class) 
inherited_from \Zend\Di\Definition\DefinitionInterface::hasMethods()

Parameters

$class

setInstantiator()

setInstantiator(null|\Callable|array|string $instantiator) : \Zend\Di\Definition\ClassDefinition
fluent This method is part of a fluent interface and will return the same instance

Parameters

$instantiator

null\Callablearraystring

Returns

\Zend\Di\Definition\ClassDefinition

setSupertypes()

setSupertypes(array<mixed,string> $supertypes) : \Zend\Di\Definition\ClassDefinition
fluent This method is part of a fluent interface and will return the same instance

Parameters

$supertypes

array<mixed,string>

Returns

\Zend\Di\Definition\ClassDefinition

 Properties

 

$class

$class : null | string

Default

null
 

$instantiator

$instantiator : null | \Callable | array | string

Default

null
 

$methodParameters

$methodParameters : array

Default

array()
 

$methods

$methods : array<mixed,boolean>

Default

array()
 

$supertypes

$supertypes : array<mixed,string>

Default

array()