Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?hh
  2.  
  3. class Receipt_Verifier_Check {
  4. private (function(EtsyModel_Receipt, EtsyModel_Shop_Receipt2): bool) $check_function;
  5.  
  6. public function __construct(
  7. private string $left_field,
  8. private string $right_field,
  9. (function(EtsyModel_Receipt, EtsyModel_Shop_Receipt2): bool) $check_function
  10. ) { $this->check_function = $check_function; }
  11.  
  12. public function check(EtsyModel_Receipt $master_receipt, EtsyModel_Shop_Receipt2 $shard_receipt): bool {
  13. return $this->check_function($master_receipt, $shard_receipt);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement