• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemsdk / docker-symfony-api / #80

pending completion
#80

push

DKravtsov
Updated composer dependencies.

1475 of 2825 relevant lines covered (52.21%)

22.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/General/Domain/Service/Interfaces/ElasticsearchServiceInterface.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\General\Domain\Service\Interfaces;
6

7
/**
8
 * Interface ElasticsearchServiceInterface
9
 *
10
 * @package App\General
11
 */
12
interface ElasticsearchServiceInterface
13
{
14
    /**
15
     * Instantiate client instance
16
     */
17
    public function instantiate(): void;
18

19
    /**
20
     * Index a document
21
     *
22
     * @param array<int|string, mixed> $body
23
     *
24
     * @return callable|array<int|string, mixed>
25
     */
26
    public function index(string $index, string $documentId, array $body): mixed;
27

28
    /**
29
     * Get info about elastic
30
     *
31
     * @param array<int|string, mixed> $params
32
     *
33
     * @return callable|array<int|string, mixed>
34
     */
35
    public function info(array $params = []): mixed;
×
36

37
    /**
38
     * @param array<string, mixed> $params
39
     *
40
     * @return array<int|string, mixed>
41
     */
42
    public function getTemplate(array $params): array;
43

44
    /**
45
     * Create/update template
46
     * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html
47
     *
48
     * @param array<string, mixed> $params
49
     *
50
     * @return array<int|string, mixed>
51
     */
52
    public function putTemplate(array $params): array;
53

54
    /**
55
     * Search for a elastic document
56
     *
57
     * @param array<int|string, mixed> $body
58
     *
59
     * @return callable|array<int|string, mixed>
60
     */
61
    public function search(string $index, array $body, int $from, int $size): mixed;
62

63
    /**
64
     * Create string with index name
65
     */
66
    public static function generateIndexName(?int $timestamp = null): string;
67

68
    /**
69
     * Get elastic properties types, etc...
70
     *
71
     * @return array<int|string, mixed>
72
     */
73
    public static function getPropertiesData(): array;
74

75
    /**
76
     * Get format for datetime to text transformation
77
     */
78
    public static function getDateTimeFormat(): string;
79
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc