class Changeset extends AbstractObject implements IdAble

A comparison between two directories representing changes that can be applied.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

array
addedPaths()

Files and directories that were added in the newer directory.

after()

The newer/upper snapshot.

asPatch()

Return a Git-compatible patch of the changes

before()

The older/lower snapshot to compare against.

id()

A unique identifier for this Changeset.

layer()

Return a snapshot containing only the created and modified files

array
modifiedPaths()

Files and directories that existed before and were updated in the newer directory.

array
removedPaths()

Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.

sync()

Force evaluation in the engine.

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
array addedPaths()

Files and directories that were added in the newer directory.

Return Value

array

at line 28
Directory after()

The newer/upper snapshot.

Return Value

Directory

at line 37
File asPatch()

Return a Git-compatible patch of the changes

Return Value

File

at line 46
Directory before()

The older/lower snapshot to compare against.

Return Value

Directory

at line 55
AbstractId id()

A unique identifier for this Changeset.

Return Value

AbstractId

at line 64
Directory layer()

Return a snapshot containing only the created and modified files

Return Value

Directory

at line 73
array modifiedPaths()

Files and directories that existed before and were updated in the newer directory.

Return Value

array

at line 82
array removedPaths()

Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.

Return Value

array

at line 91
ChangesetId sync()

Force evaluation in the engine.

Return Value

ChangesetId