Bitrix API

UseFactory

Trait UseFactory

Class that uses this trait uses @see Factory and a concrete instance of Factory could be set externaly.

Can be used to implement interface @see CanUseFactory

Table of Contents

Methods

getFactory()  : Factory|null
Returns an instance of Factory that is used in this object
setFactory()  : void
Set an instance of Factory that should be used in this object

Methods

getFactory()

Returns an instance of Factory that is used in this object

public getFactory() : Factory|null
Return values
Factory|null

setFactory()

Set an instance of Factory that should be used in this object

public setFactory(Factory $factory) : void
Parameters
$factory : Factory

        
On this page

Search results