Jackalope\Query\QOM\QueryObjectModelFactory::__construct PHP Method

__construct() public method

Create the query object model factory - get this from the QueryManager
public __construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager = null )
$factory Jackalope\FactoryInterface the object factory
$objectManager Jackalope\ObjectManager only used to create the query (can be omitted if you do not want to execute the query but just use it with a parser)
    public function __construct(FactoryInterface $factory, ObjectManager $objectManager = null)
    {
        $this->factory = $factory;
        $this->objectManager = $objectManager;
    }