PHP Класс Sleimanx2\Plastic\Mappings\Mappings

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$connection string The name of the database connection to use.
$resolver Illuminate\Database\ConnectionResolverInterface The database connection resolver instance.
$table string The name of the mappings table.

Открытые методы

Метод Описание
__construct ( Illuminate\Database\ConnectionResolverInterface $resolver, string $table ) Create a new database mapping repository instance.
createRepository ( ) Create the mapping repository data store.
delete ( object $mapping ) Remove mapping from the log.
exits ( ) : mixed Check it the repository table exits.
getConnection ( ) : Illuminate\Database\ConnectionInterface Resolve the database connection instance.
getConnectionResolver ( ) : Illuminate\Database\ConnectionResolverInterface Get the connection resolver instance.
getLast ( ) : array Get the last mapping batch.
getLastBatchNumber ( ) : float | integer Get the next mapping batch number.
getNextBatchNumber ( ) * Get the next mapping batch number
getRan ( ) : array Get the ran mappings.
log ( $file, $batch ) Log that a mapping was run.
reset ( ) Remove all mapping logs from the repository.
setSource ( string $name ) : void Set the information source to gather data.

Защищенные методы

Метод Описание
schema ( ) : Illuminate\Database\Schema\Builder get a schema builder instance.
table ( ) : Builder Get a query builder for the mapping table.

Описание методов

__construct() публичный Метод

Create a new database mapping repository instance.
public __construct ( Illuminate\Database\ConnectionResolverInterface $resolver, string $table )
$resolver Illuminate\Database\ConnectionResolverInterface
$table string

createRepository() публичный Метод

Create the mapping repository data store.
public createRepository ( )

delete() публичный Метод

Remove mapping from the log.
public delete ( object $mapping )
$mapping object

exits() публичный Метод

Check it the repository table exits.
public exits ( ) : mixed
Результат mixed

getConnection() публичный Метод

Resolve the database connection instance.
public getConnection ( ) : Illuminate\Database\ConnectionInterface
Результат Illuminate\Database\ConnectionInterface

getConnectionResolver() публичный Метод

Get the connection resolver instance.
public getConnectionResolver ( ) : Illuminate\Database\ConnectionResolverInterface
Результат Illuminate\Database\ConnectionResolverInterface

getLast() публичный Метод

Get the last mapping batch.
public getLast ( ) : array
Результат array

getLastBatchNumber() публичный Метод

Get the next mapping batch number.
public getLastBatchNumber ( ) : float | integer
Результат float | integer

getNextBatchNumber() публичный Метод

* Get the next mapping batch number
public getNextBatchNumber ( )

getRan() публичный Метод

Get the ran mappings.
public getRan ( ) : array
Результат array

log() публичный Метод

Log that a mapping was run.
public log ( $file, $batch )
$file
$batch

reset() публичный Метод

Remove all mapping logs from the repository.
public reset ( )

schema() защищенный Метод

get a schema builder instance.
protected schema ( ) : Illuminate\Database\Schema\Builder
Результат Illuminate\Database\Schema\Builder

setSource() публичный Метод

Set the information source to gather data.
public setSource ( string $name ) : void
$name string
Результат void

table() защищенный Метод

Get a query builder for the mapping table.
protected table ( ) : Builder
Результат Illuminate\Database\Query\Builder

Описание свойств

$connection защищенное свойство

The name of the database connection to use.
protected string $connection
Результат string

$resolver защищенное свойство

The database connection resolver instance.
protected ConnectionResolverInterface,Illuminate\Database $resolver
Результат Illuminate\Database\ConnectionResolverInterface

$table защищенное свойство

The name of the mappings table.
protected string $table
Результат string