WooCommerce Code Reference

DefinitionInterface extends ContainerAwareInterface

Table of Contents

addArgument()  : self
Add an argument to be injected.
addArguments()  : self
Add multiple arguments to be injected.
addMethodCall()  : self
Add a method to be invoked
addMethodCalls()  : self
Add multiple methods to be invoked
addTag()  : self
Add a tag to the definition.
getAlias()  : string
Get the alias of the definition.
getConcrete()  : mixed
Get the concrete of the definition.
getContainer()  : ContainerInterface
Get the container
getLeagueContainer()  : Container
Get the container. This will be removed in favour of getContainer returning Container in next major release.
hasTag()  : bool
Does the definition have a tag?
isShared()  : bool
Is this a shared definition?
resolve()  : mixed
Handle instantiation and manipulation of value and return.
setAlias()  : DefinitionInterface
Set the alias of the definition.
setConcrete()  : DefinitionInterface
Set the concrete of the definition.
setContainer()  : self
Set a container
setLeagueContainer()  : self
Set a container. This will be removed in favour of setContainer receiving Container in next major release.
setShared()  : self
Set whether this is a shared definition.

Methods