예제 #1
0
파일: Base.php 프로젝트: groupcash/php
 /**
  * @param Binary $currency
  * @param string $description
  * @param Output $output
  * @param Binary $issuerAddress
  * @param string $signature
  */
 public function __construct(Binary $currency, $description, Output $output, Binary $issuerAddress, $signature)
 {
     parent::__construct([], [$output], $signature);
     $this->description = $description;
     $this->currency = $currency;
     $this->issuerAddress = $issuerAddress;
 }
예제 #2
0
 /**
  * @param Base[] $bases
  * @param Output $output
  * @param Binary $hash
  * @param string $signature
  */
 public function __construct(array $bases, Output $output, Binary $hash, $signature)
 {
     parent::__construct(array_map([$this, 'makeInput'], $bases), $this->keepChange($bases, $output), $signature);
     $this->hash = $hash;
 }