File tree Expand file tree Collapse file tree 8 files changed +20
-8
lines changed
bundle/Core/DependencyInjection/Configuration/Parser
Repository/Values/Content
lib/Search/Common/FieldValueMapper
bundle/Core/DependencyInjection/Configuration/Parser
Repository/Values/Content Expand file tree Collapse file tree 8 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Bundle \Core \DependencyInjection \Configuration \Parser ;
810
911use Ibexa \Bundle \Core \DependencyInjection \Configuration \AbstractParser ;
2628 * default_embedding_model: text-embedding-ada-002
2729 * ```
2830 */
29- class Embeddings extends AbstractParser
31+ final class Embeddings extends AbstractParser
3032{
3133 public function addSemanticConfig (NodeBuilder $ nodeBuilder ): void
3234 {
Original file line number Diff line number Diff line change 1111use Ibexa \Contracts \Core \Repository \Values \Content \Query \Criterion ;
1212use Ibexa \Contracts \Core \Repository \Values \Content \Query \Embedding ;
1313
14- class EmbeddingQueryBuilder
14+ final class EmbeddingQueryBuilder
1515{
1616 private EmbeddingQuery $ query ;
1717
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Contracts \Core \Search \FieldType ;
810
911use Ibexa \Contracts \Core \Search \FieldType ;
1012
11- class EmbeddingField extends FieldType
13+ final class EmbeddingField extends FieldType
1214{
1315 private function __construct (string $ type )
1416 {
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Contracts \Core \Search \FieldType ;
810
911use Ibexa \Contracts \Core \Search \Embedding \EmbeddingConfigurationInterface ;
1012
11- class EmbeddingFieldFactory
13+ final class EmbeddingFieldFactory
1214{
1315 private EmbeddingConfigurationInterface $ config ;
1416
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Core \Search \Common \FieldValueMapper ;
810
911use Ibexa \Contracts \Core \Search \Field ;
1315/**
1416 * @internal for internal use by Search engine field value mapper
1517 */
16- class EmbeddingMapper extends FieldValueMapper
18+ final class EmbeddingMapper extends FieldValueMapper
1719{
1820 public function canMap (Field $ field ): bool
1921 {
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Tests \Bundle \Core \DependencyInjection \Configuration \Parser ;
810
911use Ibexa \Bundle \Core \DependencyInjection \Configuration \Parser \Embeddings as EmbeddingsConfigParser ;
1012use Ibexa \Bundle \Core \DependencyInjection \IbexaCoreExtension ;
1113use Symfony \Component \Yaml \Yaml ;
1214
13- class EmbeddingsTest extends AbstractParserTestCase
15+ final class EmbeddingsTest extends AbstractParserTestCase
1416{
1517 protected function getContainerExtensions (): array
1618 {
Original file line number Diff line number Diff line change 1919use InvalidArgumentException ;
2020use PHPUnit \Framework \TestCase ;
2121
22- class EmbeddingQueryBuilderTest extends TestCase
22+ final class EmbeddingQueryBuilderTest extends TestCase
2323{
2424 public function testBuilderSetsAllowedProperties (): void
2525 {
Original file line number Diff line number Diff line change 44 * @copyright Copyright (C) Ibexa AS. All rights reserved.
55 * @license For full copyright and license information view LICENSE file distributed with this source code.
66 */
7+ declare (strict_types=1 );
8+
79namespace Ibexa \Tests \Integration \Core \Search \FieldType ;
810
911use Ibexa \Contracts \Core \Search \Embedding \EmbeddingConfigurationInterface ;
1012use Ibexa \Contracts \Core \Search \FieldType \EmbeddingFieldFactory ;
1113use PHPUnit \Framework \TestCase ;
1214
13- class EmbeddingFieldFactoryTest extends TestCase
15+ final class EmbeddingFieldFactoryTest extends TestCase
1416{
1517 public function testCreateUsesConfigSuffix (): void
1618 {
You can’t perform that action at this time.
0 commit comments