Skip to content

Commit 379e418

Browse files
committed
Class docs
1 parent 465605f commit 379e418

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

src/Query/Builder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use PDPhilip\Elasticsearch\Connection;
2121
use PDPhilip\Elasticsearch\Data\MetaDTO;
2222
use PDPhilip\Elasticsearch\Eloquent\ElasticCollection;
23+
use PDPhilip\Elasticsearch\Eloquent\Model;
2324
use PDPhilip\Elasticsearch\Exceptions\BuilderException;
2425
use PDPhilip\Elasticsearch\Exceptions\LogicException;
2526
use PDPhilip\Elasticsearch\Exceptions\RuntimeException;
@@ -28,6 +29,8 @@
2829
use PDPhilip\Elasticsearch\Traits\HasOptions;
2930

3031
/**
32+
* @method $this save()
33+
*
3134
* @property Connection $connection
3235
* @property Processor $processor
3336
* @property Grammar $grammar

src/Schema/Schema.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,43 @@
44

55
namespace PDPhilip\Elasticsearch\Schema;
66

7+
use Elastic\Elasticsearch\Endpoints\Indices;
78
use Illuminate\Support\Facades\Facade;
9+
use PDPhilip\Elasticsearch\Exceptions\LogicException;
810

911
/**
10-
* @mixin static Builder
12+
* @method static Builder overridePrefix(string $value)
13+
* @method static array getTables()
14+
* @method static array getTable($name)
15+
* @method static bool hasTable($table)
16+
* @method static bool hasColumn($table, $column)
17+
* @method static bool hasColumns($table, $columns)
18+
* @method static void table($table, $callback)
19+
* @method static void index($table, $callback)
20+
* @method static void create($table, $callback)
21+
* @method static void createIfNotExists($table, $callback)
22+
* @method static void drop($table)
23+
* @method static void dropIfExists($table)
24+
* @method static array getIndex($indices)
25+
* @method static array getIndices()
26+
* @method static array getIndicesSummary()
27+
* @method static array getFieldMapping($table, $column, $raw = false)
28+
* @method static array getFieldsMapping($table, $raw = false)
29+
* @method static array getMappings($table, $raw = false)
30+
* @method static array getSettings($table)
31+
* @method static bool indexExists($table)
32+
* @method static array reindex($from, $to, $options = [])
33+
* @method static Indices indices()
34+
* @method static void modify($index, $callback)
35+
* @method static void delete($index)
36+
* @method static void deleteIfExists($index)
37+
* @method static void setAnalyser($index, $callback)
38+
* @method static bool hasField($index, $field)
39+
* @method static bool hasFields($index, $fields)
40+
* @method static LogicException hasIndex($table, $index, $type = null)
41+
*** Laravel Inherited
42+
* @method static \Illuminate\Database\Connection getConnection()
43+
* @method static void blueprintResolver(\Closure $resolver)
1144
*
1245
* @see Builder
1346
*/

0 commit comments

Comments
 (0)