PHP 클래스 Locker\Repository\Statement\EloquentInserter

상속: extends EloquentReader, implements Locker\Repository\Statement\Inserter
파일 보기 프로젝트 열기: learninglocker/learninglocker

공개 메소드들

메소드 설명
compareForConflict ( stdClass $statement_x, stdClass $statement_y ) Compares two statements.
insert ( array $statements, StoreOptions $opts ) Inserts statements with the given options.

비공개 메소드들

메소드 설명
checkForConflict ( stdClass $statement, StoreOptions $opts ) Checks for a duplicate statement with the given options.
constructModel ( stdClass $statement, StoreOptions $opts ) : [String Constructs a model from the given statement and options.
insertModels ( array $models, StoreOptions $opts ) Inserts models with the given options.
matchableStatement ( stdClass $statement ) : stdClass Decodes the encoded statement.

메소드 상세

compareForConflict() 공개 메소드

Throws Exceptions\Conflict if the two statements match.
public compareForConflict ( stdClass $statement_x, stdClass $statement_y )
$statement_x stdClass
$statement_y stdClass

insert() 공개 메소드

Inserts statements with the given options.
public insert ( array $statements, StoreOptions $opts )
$statements array
$opts StoreOptions