コード例 #1
0
 /**
  * Initializes operation.
  *
  * @param PackageInterface $package package instance
  * @param string           $reason  operation reason
  */
 public function __construct(AliasPackage $package, $reason = null)
 {
     parent::__construct($reason);
     $this->package = $package;
 }
コード例 #2
0
 /**
  * Initializes update operation.
  *
  * @param PackageInterface $initial initial package
  * @param PackageInterface $target  target package (updated)
  * @param string           $reason  update reason
  */
 public function __construct(PackageInterface $initial, PackageInterface $target, $reason = null)
 {
     parent::__construct($reason);
     $this->initialPackage = $initial;
     $this->targetPackage = $target;
 }
コード例 #3
0
 public function __construct(PackageInterface $package, $reason = null)
 {
     parent::__construct($reason);
     $this->package = $package;
 }