Beispiel #1
0
 /**
  * @param array[string]string $total
  * @return $this
  */
 public function setTotal(array $total)
 {
     Preconditions::checkDictionary($total, 'total', ['\\PurchasedAt\\Validation\\Preconditions', 'checkIso3Currency'], ['\\PurchasedAt\\Validation\\Preconditions', 'checkFloat']);
     $this->total = $total;
     return $this;
 }
Beispiel #2
0
 /**
  * @param array [string]string $price
  * @return $this
  */
 public function setPrice(array $price)
 {
     Preconditions::checkDictionary($price, 'price', ['\\PurchasedAt\\Validation\\Preconditions', 'checkIso3Currency'], ['\\PurchasedAt\\Validation\\Preconditions', 'checkFloat']);
     $this->price = $price;
     return $this;
 }