Locker\Repository\Statement\EloquentInserter::checkForConflict PHP Метод

checkForConflict() приватный Метод

Checks for a duplicate statement with the given options.
private checkForConflict ( stdClass $statement, StoreOptions $opts )
$statement stdClass
$opts StoreOptions
    private function checkForConflict(\stdClass $statement, StoreOptions $opts)
    {
        $duplicate = $this->where($opts)->where('statement.id', $statement->id)->where('active', true)->first();
        if ($duplicate === null) {
            return false;
        }
        $this->compareForConflict($statement, $this->formatModel($duplicate));
        return true;
    }