PHP 클래스 Sleimanx2\Plastic\Mappings\Mappings

파일 보기 프로젝트 열기: sleimanx2/plastic 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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