/**
  * CollectionEvent constructor.
  *
  * @param DeltaInterface $target
  * @param OptionsInterface $options
  * @param CollectionInterface $collection
  * @param DateTime $createdOn
  */
 public function __construct(DeltaInterface $target, OptionsInterface $options, CollectionInterface $collection, DateTime $createdOn = null)
 {
     $this->options = $options;
     $this->target = $target;
     $this->collection = $collection;
     parent::__construct($createdOn);
 }
Exemple #2
0
 /**
  * MigrationEvent constructor.
  *
  * @param DeltaInterface $target
  * @param OptionsInterface $options
  * @param CollectionContextInterface $context
  * @param DateTime $occurredOn
  */
 public function __construct(DeltaInterface $target, OptionsInterface $options, CollectionContextInterface $context = null, DateTime $occurredOn = null)
 {
     if (null === $context) {
         $context = new CollectionContext(new Progress(1, 1));
     }
     $this->context = $context;
     $this->options = $options;
     $this->target = $target;
     parent::__construct($occurredOn);
 }