matchContainerFactory = $matchContainerFactory; } /** * Add query to select. * * @param Select $select * @param RequestQueryInterface $query * @param string $conditionType * @return Select */ public function addMatchQuery( Select $select, RequestQueryInterface $query, $conditionType ) { $container = $this->matchContainerFactory->create( [ 'request' => $query, 'conditionType' => $conditionType, ] ); $name = self::DERIVED_QUERY_PREFIX . count($this->queries); $this->queries[$name] = $container; return $select; } /** * Get queries. * * @return MatchContainer[] */ public function getMatchQueries() { return $this->queries; } }