Zend\Di\Definition\Builder\PhpClass
Object containing definitions for a single class
Synopsis
class PhpClass
{
- // members
- protected string $defaultMethodBuilder;
- protected null|string $name;
- protected Callable|array $instantiator;
- protected array $injectionMethods;
- protected array $superTypes;
- // methods
- public PhpClass setName()
- public string getName()
- public PhpClass setInstantiator()
- public Callable|string getInstantiator()
- public PhpClass addSuperType()
- public array getSuperTypes()
- public PhpClass addInjectionMethod()
- public InjectionMethod createInjectionMethod()
- public PhpClass setMethodBuilder()
- public string getMethodBuilder()
- public array getInjectionMethods()
Members
protected
- $defaultMethodBuilder — string
- $injectionMethods — array
- $instantiator — Zend\Di\Definition\Builder\string|\Callable|array
- $name — Zend\Di\Definition\Builder\null|string
- $superTypes — array
Methods
public
- addInjectionMethod() — Add injection method
- addSuperType()
- createInjectionMethod() — Create and register an injection method
- getInjectionMethods()
- getInstantiator()
- getMethodBuilder() — Determine what class will be used by {@link createInjectionMethod()}
- getName() — Get name
- getSuperTypes() — Get super types
- setInstantiator()
- setMethodBuilder() — Override which class will be used by {@link createInjectionMethod()}
- setName() — Set name