PHP Class Neos\Neos\Ui\Domain\Model\ChangeCollection

Show file Open project: neos/neos-ui Class Usage Examples

Protected Properties

Property Type Description
$changes array Changes in this collection

Public Methods

Method Description
add ( Neos\Neos\Ui\Domain\Model\ChangeInterface $change ) : void Add a change to this collection
apply ( ) : void Apply all changes
compress ( ) : ChangeCollection Reduce this collection to a minimal set of changes with the same outcome
count ( ) : integer Get the number of changes in this collection

Method Details

add() public method

Add a change to this collection
public add ( Neos\Neos\Ui\Domain\Model\ChangeInterface $change ) : void
$change Neos\Neos\Ui\Domain\Model\ChangeInterface
return void

apply() public method

Apply all changes
public apply ( ) : void
return void

compress() public method

Reduce this collection to a minimal set of changes with the same outcome
public compress ( ) : ChangeCollection
return ChangeCollection

count() public method

Get the number of changes in this collection
public count ( ) : integer
return integer

Property Details

$changes protected property

Changes in this collection
protected array $changes
return array