Skip to content

Commit 1c003c7

Browse files
committed
Add package API docblocks
1 parent 93b18c1 commit 1c003c7

9 files changed

Lines changed: 27 additions & 0 deletions

src/Engine.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Laravel\Scout\Engines\Engine as ScoutEngine;
2020
use stdClass;
2121

22+
/**
23+
* Laravel Scout engine backed by OpenSearch.
24+
*/
2225
class Engine extends ScoutEngine
2326
{
2427
/**

src/Factories/DocumentFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Illuminate\Support\Collection;
99
use UnexpectedValueException;
1010

11+
/**
12+
* Creates OpenSearch documents from Scout models.
13+
*/
1114
class DocumentFactory implements DocumentFactoryInterface
1215
{
1316
/**

src/Factories/DocumentFactoryInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Illuminate\Support\Collection;
66

7+
/**
8+
* Defines a factory for creating OpenSearch documents from Scout models.
9+
*/
710
interface DocumentFactoryInterface
811
{
912
/**

src/Factories/ModelFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Illuminate\Support\LazyCollection;
1010
use Laravel\Scout\Builder;
1111

12+
/**
13+
* Creates Scout model results from OpenSearch responses.
14+
*/
1215
class ModelFactory implements ModelFactoryInterface
1316
{
1417
/**

src/Factories/ModelFactoryInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Illuminate\Support\LazyCollection;
88
use Laravel\Scout\Builder;
99

10+
/**
11+
* Defines a factory for creating Scout model results from OpenSearch responses.
12+
*/
1013
interface ModelFactoryInterface
1114
{
1215
/**

src/Factories/SearchRequestFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Laravel\Scout\Builder;
88
use stdClass;
99

10+
/**
11+
* Creates OpenSearch search requests from Scout builders.
12+
*/
1013
class SearchRequestFactory implements SearchRequestFactoryInterface
1114
{
1215
/**

src/Factories/SearchRequestFactoryInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use DirectoryTree\OpenSearchScoutDriver\SearchRequest;
66
use Laravel\Scout\Builder;
77

8+
/**
9+
* Defines a factory for creating OpenSearch search requests from Scout builders.
10+
*/
811
interface SearchRequestFactoryInterface
912
{
1013
/**

src/OpenSearchScoutServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Illuminate\Support\ServiceProvider;
1515
use Laravel\Scout\EngineManager;
1616

17+
/**
18+
* Registers the OpenSearch Scout driver package.
19+
*/
1720
class OpenSearchScoutServiceProvider extends ServiceProvider
1821
{
1922
/**

src/SearchRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use DirectoryTree\OpenSearchAdapter\Search\SearchRequest as OpenSearchRequest;
66

7+
/**
8+
* Represents a Scout search request prepared for OpenSearch.
9+
*/
710
class SearchRequest
811
{
912
/**

0 commit comments

Comments
 (0)