コード例 #1
0
ファイル: CollectionEvent.php プロジェクト: baleen/migrations
 /**
  * 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);
 }
コード例 #2
0
ファイル: MigrationEvent.php プロジェクト: baleen/migrations
 /**
  * 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);
 }