PHP Class Sleimanx2\Plastic\Mappings\Mappings

Afficher le fichier Open project: sleimanx2/plastic Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
schema ( ) : Illuminate\Database\Schema\Builder get a schema builder instance.
table ( ) : Builder Get a query builder for the mapping table.

Method Details

__construct() public méthode

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

createRepository() public méthode

Create the mapping repository data store.
public createRepository ( )

delete() public méthode

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

exits() public méthode

Check it the repository table exits.
public exits ( ) : mixed
Résultat mixed

getConnection() public méthode

Resolve the database connection instance.
public getConnection ( ) : Illuminate\Database\ConnectionInterface
Résultat Illuminate\Database\ConnectionInterface

getConnectionResolver() public méthode

Get the connection resolver instance.
public getConnectionResolver ( ) : Illuminate\Database\ConnectionResolverInterface
Résultat Illuminate\Database\ConnectionResolverInterface

getLast() public méthode

Get the last mapping batch.
public getLast ( ) : array
Résultat array

getLastBatchNumber() public méthode

Get the next mapping batch number.
public getLastBatchNumber ( ) : float | integer
Résultat float | integer

getNextBatchNumber() public méthode

* Get the next mapping batch number
public getNextBatchNumber ( )

getRan() public méthode

Get the ran mappings.
public getRan ( ) : array
Résultat array

log() public méthode

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

reset() public méthode

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

schema() protected méthode

get a schema builder instance.
protected schema ( ) : Illuminate\Database\Schema\Builder
Résultat Illuminate\Database\Schema\Builder

setSource() public méthode

Set the information source to gather data.
public setSource ( string $name ) : void
$name string
Résultat void

table() protected méthode

Get a query builder for the mapping table.
protected table ( ) : Builder
Résultat Illuminate\Database\Query\Builder

Property Details

$connection protected_oe property

The name of the database connection to use.
protected string $connection
Résultat string

$resolver protected_oe property

The database connection resolver instance.
protected ConnectionResolverInterface,Illuminate\Database $resolver
Résultat Illuminate\Database\ConnectionResolverInterface

$table protected_oe property

The name of the mappings table.
protected string $table
Résultat string